diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-04-25 19:14:26 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:12:34 +0200 |
commit | dfef0a4d86f50820ad0c5ab5c02fdba067df0ff6 (patch) | |
tree | 71ec868edc41810945455f2b5eedb3fa4ddb3817 | |
parent | e283281f517ef5993d55e875101a2357fdedeb4a (diff) |
Only update html data downloaded list if download succeeds
-rwxr-xr-x | automedia.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/automedia.py b/automedia.py index 9d84a81..4158d44 100755 --- a/automedia.py +++ b/automedia.py @@ -543,11 +543,11 @@ def sync_html(tracked_html, download_dir, session_id): with open(os.path.join(item_dir, ".session_id"), "w") as file: file.write(session_id) - html_update_latest(html_tracked_dir, tracked_html, name, url) - if not plugin_download(plugin_entry, url, item_dir): return latest + html_update_latest(html_tracked_dir, tracked_html, name, url) + latest = name if not only_show_finished_notification: show_notification("Download started", "{}/{}".format(tracked_html.title, name)) |