Fix AttributeError on download

Fix issue #101 when using dl command with episode argument
master
Muhammad Fadhlika 2018-12-01 20:04:15 +07:00 committed by GitHub
parent b566542588
commit adc89c12ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ def dl(ctx, anime_url, episode_range, url, player, skip_download, quality,
logging.info('Found anime: {}'.format(anime.title))
anime = util.parse_ep_str(anime, episode_range)
animes = util.parse_ep_str(anime, episode_range)
if url or player:
skip_download = True
@ -122,7 +122,7 @@ def dl(ctx, anime_url, episode_range, url, player, skip_download, quality,
if download_dir and not skip_download:
logging.info('Downloading to {}'.format(os.path.abspath(download_dir)))
for episode in anime:
for episode in animes:
if url:
util.print_episodeurl(episode)