Skip to content

Commit

Permalink
Merge pull request #749 from tcely/patch-2
Browse files Browse the repository at this point in the history
Do not let one private video hold up the rest
  • Loading branch information
meeb authored Feb 21, 2025
2 parents f78fa44 + 78977bb commit 079a9d1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tubesync/sync/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,14 @@ def save_all_media_for_source(source_id):
downloaded=False,
)
for media in refresh_qs:
media.refresh_formats
media.save()
already_saved.add(media.uuid)
try:
media.refresh_formats
except YouTubeError as e:
log.debug(f'Failed to refresh formats for: {source} / {media.key}: {e!s}')
pass
else:
media.save()
already_saved.add(media.uuid)

# Trigger the post_save signal for each media item linked to this source as various
# flags may need to be recalculated
Expand Down

0 comments on commit 079a9d1

Please sign in to comment.