Skip to content

Add progress stall for ffmpeg podcast downloads#5112

Open
Vito0912 wants to merge 2 commits intoadvplyr:masterfrom
Vito0912:podcastStall
Open

Add progress stall for ffmpeg podcast downloads#5112
Vito0912 wants to merge 2 commits intoadvplyr:masterfrom
Vito0912:podcastStall

Conversation

@Vito0912
Copy link
Copy Markdown
Contributor

@Vito0912 Vito0912 commented Mar 9, 2026

Brief summary

See Discord below. Just a quick fix, nothing major

Which issue is fixed?

It should fix: https://discord.com/channels/942908292873723984/954760207131615264/1480565704670314516
fixes #4116

In-depth Description

After Axios receives a chunk, the timeout is ignored. ffmpeg waits forever. So if the stream breaks, it will stall forever. Because .on('progress') is a constant that should be called at least once a second if active data is being streamed, if there is no progress for 60 seconds, it sees the podcast as stalled.

How have you tested this?

No. This is only theoretical. I made sure it will not break downloads (I hope).

Screenshots

@nichwall
Copy link
Copy Markdown
Contributor

nichwall commented Mar 9, 2026

I believe this should also fix #4116

@Vito0912
Copy link
Copy Markdown
Contributor Author

Vito0912 commented Mar 9, 2026

I just took a very short look at the linked issue, but I don't think so. This is realted to ffmpeg which should have printed progress logs. I didn't see any in the linked issue.

I will add a fix later for that too.

@Vito0912
Copy link
Copy Markdown
Contributor Author

Vito0912 commented Mar 9, 2026

Now it should also apply to the downloads mentioned in the issue

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.

[Bug]: Failed/hanged podcast episode download blocking download queue forever

2 participants