Skip to content

Commit

Permalink
Update prep.py to set manual episode title
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkhoa authored Dec 17, 2024
1 parent ef6aaf6 commit 9926662
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit 9926662

Please sign in to comment.