Add configurable delay during playlist processing - #4
Open
shinji257 wants to merge 2 commits into
Open
Conversation
Author
|
Might have to wait. I think there is a bug. Batch counter isn't resetting. XD Fixed/squashed a small error. Works now. Set batch to 101 and wait to 30 seconds. Got through a previously downloaded 422 song playlist without hitting api errors. |
Helps to avoid API errors during long playlists especially if you are reprocessing one you downloaded previously. This is off by default. Adds options PL_BULK_WAIT_TIME and PL_BATCH config options. PL_BULK_WAIT_TIME defaults to 1 (just like BULK_WAIT_TIME) PL_BATCH defaults to 0 which is it's off or disable state. Set to any value greater than 0 to enable batching the playlist download.
shinji257
force-pushed
the
playlist_batching
branch
from
February 26, 2025 21:05
1a83204 to
7382082
Compare
It can sometimes hit at a lower mark than expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just a little something I whipped up as I hit a 422 song playlist. Yes this can result in stacking delays when it hits the batch limit as both the song delay as well as the playlist batch delay could fire but afaik there isn't a way for it to know if a song was downloaded during that batch process.
Helps to avoid API errors during long playlists especially if you are reprocessing one you downloaded previously. This is off by default.
Adds options PL_BULK_WAIT_TIME and PL_BATCH config options.
PL_BULK_WAIT_TIME defaults to 1 (just like BULK_WAIT_TIME)
PL_BATCH defaults to 0 which is it's off or disable state. Set to any value greater than 0 to enable batching the playlist download.