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&amp;e=nx-s1-5878183&amp;p=10&amp;seg=0&amp;d=287&amp;size=4600938&amp;sc=siteplayer&amp;aw_0_1st.playerid=siteplayer

downloads 20260816_wesun_politics_chat_democrats_take_lessons_from_the_primaries_set_2028_calendar.mp3?t=progseg&amp;e=nx-s1-5878183&amp;p=10&amp;seg=0&amp;d=287&amp;size=4600938&amp;sc=siteplayer&amp;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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.