From 992666242b172f1cd91997525f85f098c5eea20c Mon Sep 17 00:00:00 2001 From: Khoa Pham Date: Tue, 17 Dec 2024 18:02:03 +0700 Subject: [PATCH] Update prep.py to set manual episode title --- src/prep.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/prep.py b/src/prep.py index bcc3d75b..d9e33b58 100644 --- a/src/prep.py +++ b/src/prep.py @@ -3725,8 +3725,13 @@ async def get_season_episode(self, video, meta): # meta['season'] = "COMPLETE" meta['season_int'] = season_int meta['episode_int'] = episode_int - - meta['episode_title_storage'] = guessit(video, {"excludes": "part"}).get('episode_title', '') + + # Manual episode title + if meta['manual_episode_title'] == "": + meta['episode_title_storage'] = meta.get('manual_episode_title') + else: + meta['episode_title_storage'] = guessit(video, {"excludes": "part"}).get('episode_title', '') + if meta['season'] == "S00" or meta['episode'] == "E00": meta['episode_title'] = meta['episode_title_storage']