linsomniac/spotify_to_ytmusic

Unable to add more than around 270 songs before youtube starts refusing requests (HTTP error 400)

Closed this issue · 1 comments

Using copy_playlist.py.

Re-running the script does not change the outcome, and it does not stop at a specific song. See screenshots.

image

image

Adding the time.sleep(3) here worked to solve that:

for src_track in src_pl["tracks"]:
        time.sleep(3)

Takes longer, but at least it completes the playlist.

I added a per-track sleep, default of a tenth of a second, and a command-line argument to control it. I also made the retry do a back-off, which might help; first time it fails it sleeps for 5 seconds, then 10, then 20... Thanks for the feedback!