Skip to content

Add configurable delay during playlist processing - #4

Open
shinji257 wants to merge 2 commits into
bgeorgakas:mainfrom
shinji257:playlist_batching
Open

Add configurable delay during playlist processing#4
shinji257 wants to merge 2 commits into
bgeorgakas:mainfrom
shinji257:playlist_batching

Conversation

@shinji257

@shinji257 shinji257 commented Feb 26, 2025

Copy link
Copy Markdown

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.

@shinji257

shinji257 commented Feb 26, 2025

Copy link
Copy Markdown
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.
It can sometimes hit at a lower mark than expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant