castget icon indicating copy to clipboard operation
castget copied to clipboard

fileextension not added for custom filenames

Open L0ric0 opened this issue 6 years ago • 3 comments

when using a custom filename template the fileextenstion is not added.

L0ric0 avatar Jan 20 '20 00:01 L0ric0

Even just having a %(filextension) template option would be awesome.

spencerhughes avatar Jan 22 '20 02:01 spencerhughes

Agree this is really dumb. As usual, there are a few options, in increasing order of complexity:

  1. We can peek at the filenames in the feed and use whatever extension is there.
  2. We can look at the media type in the HTTP response and try to determine the extension from there.
  3. 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.

mlj avatar Feb 28 '21 23:02 mlj

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.

Spacewalker2 avatar Jun 29 '22 09:06 Spacewalker2