Skip to content

Commit

Permalink
v2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Prudhvi-pln committed Jan 23, 2024
1 parent 974bbcf commit 8a91e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Clients/AnimePaheClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Clients/GogoAnimeClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a91e68

Please sign in to comment.