mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 18:00:17 +00:00
fix thumbnail validation with new PendingList class
This commit is contained in:
parent
89428297c9
commit
b68a00073f
@ -52,6 +52,7 @@ class PendingIndex:
|
||||
|
||||
def get_indexed(self):
|
||||
"""get a list of all videos indexed"""
|
||||
self.all_videos = []
|
||||
data = {
|
||||
"query": {"match_all": {}},
|
||||
"sort": [{"published": {"order": "desc"}}],
|
||||
|
@ -60,6 +60,7 @@ class ThumbManager:
|
||||
all_thumbs = self.get_all_thumbs()
|
||||
|
||||
pending = queue.PendingList()
|
||||
pending.get_download()
|
||||
pending.get_indexed()
|
||||
|
||||
needed_thumbs = []
|
||||
@ -72,8 +73,6 @@ class ThumbManager:
|
||||
else:
|
||||
needed_thumbs.append((youtube_id, thumb_url))
|
||||
|
||||
pending.get_download()
|
||||
|
||||
for video in pending.all_pending + pending.all_ignored:
|
||||
youtube_id = video["youtube_id"]
|
||||
thumb_url = video["vid_thumb_url"]
|
||||
|
Loading…
Reference in New Issue
Block a user