Skip to content

Commit

Permalink
Too large (>300MB) files were crashing the uploader. Added code to sk…
Browse files Browse the repository at this point in the history
…ip instead.
  • Loading branch information
brian-doherty authored and jaymoulin committed Sep 24, 2024
1 parent 8a7ed3e commit e54a3c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions youtube_music_uploader/uploader_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def upload_file(
elif error_message.find("502") != -1:
retry -= 1
time.sleep(30)
elif error_message.find("x-goog-upload-url") != -1:
retry = 0
logger.info("File was too large to upload. Skipping for now.")
else:
raise e

Expand Down

0 comments on commit e54a3c6

Please sign in to comment.