Hello there,
First of all; I am sorry if I am using the wrong community - and sorry for any n00bshow regarding this post since I have not done this before.
Background: To my utter delight, I found a podcast on archive.org that I have been searching for. I have succesfully downloaded all audio files listed under "VBR MP3 FILES" as a .zip file (and as a torrent), and they will download as .mp3-files. I am on Windows 10 (sorry, I will change) and using Firefox as browser.
Very long story short, a lot of files had parse errors in an ID3 editor (Mp3tag), and I incidently found out that most of the files actually seem to be .m4a-files instead of .mp3.
Nonetheless, all URLs on the podcast's main page show as .mp3-files and will download so if downloaded as a .zip or through torrent. (Or if using Edge, apparantly, which I just tested).
Issue: What is REALLY weird (at least to me) is that if I am right clicking a single link to an episode in Firefox > save link as > my dialog box shows it will save as .m4a-file - which seems to be the correct file type (with no parse errors in Mp3tag) which I naturally would prefer. Screenshot attached.
If been trying to search for an answer my self what is happening, but evidently failed to do so. Does anyone have an answer? And for a bonus; is it possible to batch "save link as"? wget on a Linux machine? downthemall on FF likewise download files as .mp3.
To hopefully reproduce:
- Downloading first episode "2015.11.01 - #1 – 1. Mosebog, kap. 1, vers 1..mp3" for instance as torrent
- Download the same episode by manually browsing the episodes with Firefox > click "VBR MP3" under "download options" > right click “2015.11.01 - #1 – 1. Mosebog, kap. 1, vers 1…mp3” > save link as... > it will hopefully download as .m4a.
THANK you very much in advance! Have a good one.
![](https://lemmy.ml/pictrs/image/d23aa12d-5fd3-4cd9-a164-8a2907a1e563.png)
From what I understand, the end of the URL string is just one of the clues the browser uses to determine the "type" of received data (https://mimesniff.spec.whatwg.org/), and the true behavior depends on the browser's specific implementation. A part of the process involves actually reading and analyzing a small portion of the received file to see if the file really is the type that the URL claims it is. For example, I started a quick python server, and made it serve the OP image, except I renamed it as a jpg file (without actually converting the image of course). When saving the picture inside the browser, Firefox correctly identifies the file as a png image:
While edge incorrectly tries to save the image as a jpg image:
![](https://lemmy.world/pictrs/image/0c4a5d54-fbd2-45cf-a7e5-5a5b8b0d59a9.png)
Regarding your "MP3" file specifically, opening it in a hex editor reveals that the actual file contents identifies itself as an M4A file, despite what the URL claims:![](https://lemmy.world/pictrs/image/b03a80c1-e501-49cc-bac7-9eef76e1e576.png)
So, you should be good to download them any way you find convenient, and then just renaming them to the proper extension afterwards.
You gotta be kidding me..
I initally tried renaming the files to .m4a but Mp3tag still showed parse error.
.. But I tried once more per your suggestion and behold! No parse error. I am not sure what I did differently (obviously user error nonetheless!)
But thank you so much, I learned a lot!