Skip to content

Commit

Permalink
Merge pull request #574 from AbdullahM0hamed/split-fix
Browse files Browse the repository at this point in the history
fix split_anime for gui
  • Loading branch information
AbdullahM0hamed authored Nov 20, 2020
2 parents c7941be + 117d4da commit fc217f8
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 fc217f8

Please sign in to comment.