Skip to content

Commit

Permalink
Aither: Include episode title in name
Browse files Browse the repository at this point in the history
  • Loading branch information
L4GSP1KE committed Sep 12, 2023
1 parent 09c6428 commit ca1f5ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trackers/AITHER.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ async def edit_name(self, meta):
audio_lang = meta['bdinfo']['audio'][0]['language'].upper()
if audio_lang != "":
aither_name = aither_name.replace(meta['resolution'], f"{audio_lang} {meta['resolution']}", 1)
# aither_name = aither_name.replace(meta.get('video_encode', meta.get('video_codec', "")), meta.get('video_encode', meta.get('video_codec', "")).replace('.', ''))
if meta['category'] == "TV" and meta.get('tv_pack', 0) == 0 and meta.get('episode_title_storage', '').strip() != '' and meta['episode'].strip() != '':
name = name.replace(meta['episode'], f"{meta['episode']} {meta['episode_title_storage']}", 1)
return aither_name

async def get_cat_id(self, category_name):
Expand Down

0 comments on commit ca1f5ad

Please sign in to comment.