mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-25 21:20:15 +00:00
make sure to get both banner and icon
This commit is contained in:
parent
ba12c2ad25
commit
fd2fa628e3
@ -4,6 +4,7 @@ functionality:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from collections import Counter
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
import home.src.download as download
|
import home.src.download as download
|
||||||
@ -78,7 +79,8 @@ class ThumbManager:
|
|||||||
def get_missing_channels(self):
|
def get_missing_channels(self):
|
||||||
"""get all channel artwork"""
|
"""get all channel artwork"""
|
||||||
all_channel_art = os.listdir(self.CHANNEL_DIR)
|
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(
|
channels = download.ChannelSubscription().get_channels(
|
||||||
subscribed_only=False
|
subscribed_only=False
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user