Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a configuration for podcast feed and episode download timeout #3771

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

sbyrx
Copy link
Contributor

@sbyrx sbyrx commented Jan 1, 2025

Brief summary

Added a new global configuration PODCAST_DOWNLOAD_TIMEOUT to configure the axios timeout for Podcast feed and episode downloads. The value defaults to the same 30000ms as before if not set, but can now be overridden, or set to 0 to disable timeouts all together.

Which issue is fixed?

Fixes #3662

In-depth Description

I've been experimenting with podly_pure_podcasts to remove ads from Podcast episodes. This results in really long download times as the podly server processes the episode, causing downloads in Audiobookshelf to timeout.

How have you tested this?

Tested by running locally, configuring the timeout to 0, downloading an episode through the podly server, and confirming the download does not timeout.

All tests pass when running npm run test

Screenshots

N/A

@advplyr
Copy link
Owner

advplyr commented Jan 1, 2025

The env variable should be specific to podcast file downloads unless it is also used for cover image downloads.

@sbyrx
Copy link
Contributor Author

sbyrx commented Jan 1, 2025

Sure, I can rename the env variable to PODCAST_DOWNLOAD_TIMEOUT if you would prefer.

@advplyr
Copy link
Owner

advplyr commented Jan 8, 2025

Thanks!

@advplyr advplyr merged commit 05ff5f1 into advplyr:master Jan 8, 2025
5 checks passed
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.

[Enhancement]: add either global or podcast-dependent timeout for reading RSS feed
2 participants