From fd2fa628e36d1dd1312414c459ad96684b872d63 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 14 Oct 2021 22:48:23 +0700 Subject: [PATCH] make sure to get both banner and icon --- tubearchivist/home/src/thumbnails.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/thumbnails.py b/tubearchivist/home/src/thumbnails.py index ffff3d8a..9897276e 100644 --- a/tubearchivist/home/src/thumbnails.py +++ b/tubearchivist/home/src/thumbnails.py @@ -4,6 +4,7 @@ functionality: """ import os +from collections import Counter from time import sleep import home.src.download as download @@ -78,7 +79,8 @@ class ThumbManager: def get_missing_channels(self): """get all channel artwork""" all_channel_art = os.listdir(self.CHANNEL_DIR) - cached_channel_ids = {i[0:24] for i in all_channel_art} + files = [i[0:24] for i in all_channel_art] + cached_channel_ids = [k for (k, v) in Counter(files).items() if v > 1] channels = download.ChannelSubscription().get_channels( subscribed_only=False )