castget
castget copied to clipboard
fileextension not added for custom filenames
when using a custom filename template the fileextenstion is not added.
Even just having a %(filextension) template option would be awesome.
Agree this is really dumb. As usual, there are a few options, in increasing order of complexity:
- We can peek at the filenames in the feed and use whatever extension is there.
- We can look at the media type in the HTTP response and try to determine the extension from there.
- We can try to look at the file itself and have a guess.
Option 1 is very simple but not very robust. Still, I think it is better than the current situation, so it may be worth starting with that.
Maybe it could be as simple as extension=opus or ext=opus. So the https://example.com/episodeX.opus gets downloaded instead of https://example.com/episodeX.mp3 which is the one in the feed.