Re: fetching files with javascript
rbell--- via Lynx-dev <[email protected]>
| Newsgroups | gmane.comp.web.lynx.devel |
|---|---|
| Message-ID | <[email protected]> |
'I am compelled to comment on behalf of my colleagues at National Public Radio....' You misunderstand. I responded to Chime Hart's plaint, 'if you manually download an audio segment, you must backspace over alot of extra symbols after .mp3.' For example: https://ondemand.npr.org/anon.npr-mp3/npr/wesun/2026/08/20260816_wesun_politics_chat_democrats_take_lessons_from_the_primaries_set_2028_calendar.mp3?t=progseg&e=nx-s1-5878183&p=10&seg=0&d=287&size=4600938&sc=siteplayer&aw_0_1st.playerid=siteplayer downloads 20260816_wesun_politics_chat_democrats_take_lessons_from_the_primaries_set_2028_calendar.mp3?t=progseg&e=nx-s1-5878183&p=10&seg=0&d=287&size=4600938&sc=siteplayer&aw_0_1st.playerid=siteplayer which is a pain, especially for programs that look at suffixes to decide what to do with files. A simple script can turn that into 20260816_wesun_politics_chat_democrats_take_lessons_from_the_primaries_set_2028_calendar.mp3 no backspacing required. This retains everything human-readable about the file name. It facilitates listening to NPR, addresses Chime Hart's complaint. BTW, the stuff after mp3 isn't necessary to use the URI. NPR isn't unique in this practice. russell bell