Merge pull request #661 from ArjixGamer/patch-30

fixed the multiple ep selection using commas
master
Red 2021-04-04 14:32:59 +01:00 committed by GitHub
commit 14553e214a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -207,11 +207,11 @@ def parse_ep_str(anime, grammar):
else:
from anime_downloader.sites.anime import AnimeEpisode
if grammar == '0':
if episode_grammar == '0':
ep = sorted(anime._episode_urls)[-1]
else:
ep = [x for x in anime._episode_urls if x[0]
== int(grammar)][0]
== int(episode_grammar)][0]
ep_cls = AnimeEpisode.subclasses[anime.sitename]