Episodes not downloaded due to connection issue are not marked as downloaded

This commit is contained in:
Magnus Walbeck 2017-07-03 13:33:23 +02:00
parent 16d6bee16e
commit c268477825

View file

@ -308,8 +308,8 @@ def download_multiple(feed, maxnum):
episode["title"], episode["url"])
else:
filename = generic_episode_name(feed['shortname'], episode['url'])
download_single(feed['shortname'], episode['url'], filename)
episode['downloaded'] = True
if download_single(feed['shortname'], episode['url'], filename) is True:
episode['downloaded'] = True
maxnum -= 1
overwrite_config(feed)
@ -355,6 +355,10 @@ def download_single(folder, url, filename):
else:
print("done.")
break
else:
return False
return True
def available_feeds():