kkdai / youtube

Download Youtube Video in Golang
MIT License
3.3k stars 430 forks source link

Large Playlist Downloads Fail #337

Open gcottom opened 1 month ago

gcottom commented 1 month ago

Any playlist over 500 entries can not be downloaded, when attempting these downloads we get the error "unexpected status code: 400". However, using this api I'm able to get the playlist tracks: https://github.com/sigma67/ytmusicapi

I do individual downloads for each track but when the program gets to the 750 ish mark, all subsequent downloads fail with an error similar to this: failed to read stream: chunk at offset 0 has invalid size: expected=2926588 actual=0

I've tried reinitializing http client and yt client but nothing seems to want to download after this point, my code is here for reference: https://github.com/gcottom/yt-dl-services under the downloader folder

an offending playlist id: PLsNH_Zl8WBZ0QjjzjxHRGTmAzUi70wbY8