diff --git a/Clients/AnimePaheClient.py b/Clients/AnimePaheClient.py index 7a7f56b..be25f31 100644 --- a/Clients/AnimePaheClient.py +++ b/Clients/AnimePaheClient.py @@ -288,7 +288,7 @@ def set_out_names(self, target_series): anime_title = self._windows_safe_string(target_series['title']) # set target output dir target_dir = f"{anime_title} ({target_series['year']})" - anime_type = 'movie' if target_series.get('type').lower() == 'movie' else 'episode' + anime_type = 'Movie' if target_series.get('type').lower() == 'movie' else 'Episode' episode_prefix = f"{anime_title} {anime_type}" return target_dir, episode_prefix @@ -298,7 +298,7 @@ def fetch_m3u8_links(self, target_links, resolution, episode_prefix): ''' return dict containing m3u8 links based on resolution ''' - _get_ep_name = lambda resltn: f"{episode_prefix}{' ' if episode_prefix.endswith('movie') and len(target_links.items()) <= 1 else f' {ep} '}- {resltn}P.mp4" + _get_ep_name = lambda resltn: f"{episode_prefix}{' ' if episode_prefix.lower().endswith('movie') and len(target_links.items()) <= 1 else f' {ep} '}- {resltn}P.mp4" for ep, link in target_links.items(): error = None diff --git a/Clients/GogoAnimeClient.py b/Clients/GogoAnimeClient.py index 6b0ec75..3f89cc9 100644 --- a/Clients/GogoAnimeClient.py +++ b/Clients/GogoAnimeClient.py @@ -196,7 +196,7 @@ def set_out_names(self, target_series): # set target output dir target_dir = f"{anime_title} ({target_series['year']})" series_typ = target_series.get('Type') - anime_type = 'episode' if 'series' in series_typ.lower() or 'anime' in series_typ.lower() else series_typ + anime_type = 'Episode' if 'series' in series_typ.lower() or 'anime' in series_typ.lower() else series_typ episode_prefix = f"{anime_title} {anime_type}" return target_dir, episode_prefix