this post was submitted on 12 Aug 2024
21 points (88.9% liked)

techsupport

2469 readers
5 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 1 year ago
MODERATORS
 

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:

  1. Downloading first episode "2015.11.01 - #1 – 1. Mosebog, kap. 1, vers 1..mp3" for instance as torrent
  2. 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.

you are viewing a single comment's thread
view the rest of the comments
[–] tomalley8342@lemmy.world 12 points 3 months ago* (last edited 3 months ago) (1 children)

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:

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:

So, you should be good to download them any way you find convenient, and then just renaming them to the proper extension afterwards.

[–] PartyPatella@lemmy.ml 5 points 3 months ago

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!