make sure to get both banner and icon

This commit is contained in:
simon 2021-10-14 22:48:23 +07:00
parent ba12c2ad25
commit fd2fa628e3
1 changed files with 3 additions and 1 deletions

View File

@ -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
)