return complete vid_entry dict from scan

This commit is contained in:
Simon
2025-07-06 21:59:26 +07:00
parent 66f37a92d3
commit b6d38e9319
3 changed files with 12 additions and 11 deletions

View File

@@ -510,12 +510,14 @@ class ChannelFullScan:
self.to_update = []
for video in all_local_videos:
video_id = video["youtube_id"]
remote_match = [i for i in all_remote_videos if i[0] == video_id]
remote_match = [
i for i in all_remote_videos if i["id"] == video_id
]
if not remote_match:
print(f"{video_id}: no remote match found")
continue
expected_type = remote_match[0][-1]
expected_type = remote_match[0]["vid_type"]
if video["vid_type"] != expected_type:
self.to_update.append(
{