[emacs-w3m:13745] Re: Unable to download mp3 files
Tatsuya Kinoshita <[email protected]> Wed, 06 Jan 2021 21:47:21 +0900 (JST)
| Newsgroups | gmane.emacs.w3m |
|---|---|
| Message-ID | <20210106.214721.1605367387381151079.tats%[email protected]> |
On 2021-01-04 at 22:43 -0500, [emacs-w3m:13744], aalinovi (at riseup.net) wrote: > Using 'a' doesn't download the file. It simply downloads a raw html of > the error message. Ah, as you say, SAVE_LINK (`a`) is affected by the accept_media configuration. To avoid the issue, add "*/*" to accept_media, or use the extborser, e.g. `6 ESC M` to use curl as background, `7 ESC M` to use wget, with the following in ~/.w3m/config. ``` extbrowser6 curl -L -O -C - %s & extbrowser7 wget -c ``` > Finally, my knowledge is extremely limited but I wonder if it is > something specific to this particular site as I can download mp3's from > another site with no problem. But then again, why is lynx able to > download the files? Probably, Lynx doesn't reject the link target by the mailcap configration. I guess the w3m problem causees when the accept_media configuration doesn't have "audio/*" and the site uses audio/* such as audio/mpeg as Content-Type, the another site might use video/* ,application/*, or so. You can see the Content-Type by the command `w3m -dump_head http://...mp3`. Thanks, -- Tatsuya Kinoshita