mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 02:59:26 +00:00
clean exit of progress builder when no videos in channel
This commit is contained in:
@@ -172,7 +172,7 @@ class ArchivistResultsView(ArchivistViewConfig):
|
||||
def match_progress(self):
|
||||
"""add video progress to result context"""
|
||||
results = RedisArchivist().list_items(f"{self.user_id}:progress:")
|
||||
if not results:
|
||||
if not results or not self.context["results"]:
|
||||
return
|
||||
|
||||
progress = {i["youtube_id"]: i["position"] for i in results}
|
||||
|
||||
Reference in New Issue
Block a user