From 7f20da0ca9b8a868998aebe4a751e925e79edea5 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Sun, 20 Dec 2020 15:58:30 -0500 Subject: [PATCH] Correction for when history may pull ratingKeys as None, this causes errors later on. --- utility/media_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/media_manager.py b/utility/media_manager.py index f0789ff..2ff80e1 100644 --- a/utility/media_manager.py +++ b/utility/media_manager.py @@ -687,7 +687,7 @@ if __name__ == '__main__': watched_work(user=user, ratingKey=opts.ratingKey) # Find all items watched by all users - all_watched = [key for user in user_lst for key in user.watch.keys()] + all_watched = [key for user in user_lst for key in user.watch.keys() if key is not None] counts = Counter(all_watched) watched_by_all = [id for id in all_watched if counts[id] >= len(user_lst)] watched_by_all = list(set(watched_by_all))