From ca1f5ad4042f236fd15278ea98c19e58fe0f4765 Mon Sep 17 00:00:00 2001 From: L4GSP1KE Date: Mon, 11 Sep 2023 21:13:32 -0600 Subject: [PATCH] Aither: Include episode title in name --- src/trackers/AITHER.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trackers/AITHER.py b/src/trackers/AITHER.py index c17a51f73..ff766c00e 100644 --- a/src/trackers/AITHER.py +++ b/src/trackers/AITHER.py @@ -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):