Skip to content

Commit

Permalink
fix split_anime for gui
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahM0hamed committed Nov 20, 2020
1 parent c7941be commit 117d4da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anime_downloader/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def split_anime(anime, episode_range):
ep_range = [x for x in range(start, end)]
eps = [x for x in anime._episode_urls if x[0] in ep_range]

ep_cls = AnimeEpisode.subclasses[anime.sitename]
anime = [ep_cls(x[1], parent=anime, ep_no=x[0]) for x in eps]
anime._episode_urls = [(x[0], x[1]) for x in eps]
anime._len = len(anime._episode_urls)
except ValueError:
# Only one episode specified
episode = int(episode_range)
Expand Down

0 comments on commit 117d4da

Please sign in to comment.