martinrotter / rssguard

Feed reader (and podcast player) which supports RSS/ATOM/JSON and many web-based feed services.
GNU General Public License v3.0
1.64k stars 125 forks source link

[BUG]: Downloading audio files #1463

Closed dreemt closed 3 months ago

dreemt commented 3 months ago

Brief description of the issue

Downloading certain audio files results in incorrect file names.

How to reproduce the bug?

Feed: https://feeds.buzzsprout.com/90361.rss Right-click to download audio file at URL (this shows when you hover over AUDIO/MPEG): https://www.buzzsprout.com/90361/14235344-play-the-long-game-when-everything-is-on-fire-by-google-group-pm.mp3

What was the expected result?

Expected file name: 14235344-play-the-long-game-when-everything-is-on-fire-by-google-group-pm.mp3

What actually happened?

Actual file name: 27dnmfxcgrgpy1dx4i9jkfh9nssc

Debug log

I think it's happening because the URL: https://www.buzzsprout.com/90361/14235344-play-the-long-game-when-everything-is-on-fire-by-google-group-pm.mp3 returns HTTP 302 , which redirects to: https://audio.buzzsprout.com/27dnmfxcgrgpy1dx4i9jkfh9nssc?response-content-disposition=inline& See the file name (27dnmfxcgrgpy1dx4i9jkfh9nssc) in the path?

The following problem happened with two different feeds and URLs, but I have not been able to reproduce again. This link: https://traffic.libsyn.com/secure/miketechshow/MTS-2024-07-27.mp3 from this feed: http://mikenation.net/feed/ resulted in: MTS-2024-07-27.mp3 and 78 files named: MTS-2024-07-27-1.mp3 ... through ... MTS-2024-07-27-78.mp3

Operating system and version