diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-11-23 05:31:17 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:12:34 +0200 |
commit | 1da1b0ffeccfd7361a0f3d7550fb43c5f3192d1c (patch) | |
tree | 6867ed4de85fb6f441dc5db21be5b0be78f52952 | |
parent | 8e26354e6d0a597f12682ff54d62e89b2ff9febc (diff) |
Filter non-existing items in open_media list
-rwxr-xr-x | open_media.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/open_media.py b/open_media.py index 1fab183..6073782 100755 --- a/open_media.py +++ b/open_media.py @@ -48,6 +48,7 @@ def main(): exit(2) downloaded_list = get_downloaded_list() + downloaded_list = [item for item in downloaded_list if os.path.exists(os.path.join(download_dir, item))] seen_filepath = os.path.expanduser("~/.config/automedia/seen") seen_list = [] @@ -57,7 +58,6 @@ def main(): except OSError as e: print("Failed to open {}, reason: {}".format(seen_filepath, str(e))) - print("seen_list: {}".format(str(seen_list))) for seen in seen_list: for i, downloaded in enumerate(downloaded_list): if seen == downloaded: |