Package: elinks
Version: 0.11.4-3
Severity: normal
I would like to use a script to handle radio streams, so I have added the
corresponding
lines to /etc/elinks/elinks.conf (see attachment). Whereas the mime handlers
work as
described in the manual, other protocols like RTSP ("real audio") and MMS show
two
problems:
- they cannot be so well configured as the mime handlers even though everything
in the
explanation of that mechanism applies here as well
- the URLs for those protocols is affected by changes from the start:
rtsp://live1.rte.ie/redundant/0304.ra
becomes:
rtsp:live1.rte.ieredundant/0304.ra
(= %u)
%h contains live1.rte.ieredundant
%d contains 0304.ra
As the host address is not separated from the first path element, no tricks
can be used
to get around this problem.
Addresses like "http://66.216.18.230:80/cbc-classicalhi-192" (as opposed to,
e.g.,
"http://www.radionz.co.nz/audio/live/concert/adaptive.asx") pose a separate
problems: E
Links tries to download them before handing them over to a handler. This is no
problem
with ASX files but here, of course, it never stops.
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/bash
Versions of packages elinks depends on:
ii elinks-data 0.11.4-3 advanced text-mode WWW browser - d
ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libexpat1 2.0.1-4+lenny2 XML parsing C library - runtime li
ii libfsplib0 0.9-1 FSP v2 protocol stack library - sh
ii libgnutls26 2.4.2-6+lenny2 the GNU TLS library - runtime libr
ii libgpm2 1.20.4-3.1 General Purpose Mouse - shared lib
ii libidn11 1.8+20080606-1 GNU libidn library, implementation
ii liblua50 5.0.3-3 Main interpreter library for the L
ii liblualib50 5.0.3-3 Extension library for the Lua 5.0
ii libperl5.10 5.10.0-19lenny2 Shared Perl library
ii libruby1.8 1.8.7.72-3lenny1 Libraries necessary to run Ruby 1.
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
elinks recommends no packages.
Versions of packages elinks suggests:
pn elinks-doc <none> (no description available)
-- no debconf information
## ELinks configuration file
## See elinks.conf(5) and the output of "elinks -config-dump" for a list
## of all the supported options, their possible values and the defaults.
## protocol.http.user_agent <str>
# Change the User Agent ID. That means identification string, which
# is sent to HTTP server when a document is requested. The 'textmode'
# token in the first field is our silent attempt to establish this as
# a standard for new textmode user agents, so that the webmasters can
# have just a single uniform test for these if they are ie. pushing
# some lite version to them automagically.
# 0.11.4-3 in the string means ELinks version
# %s in the string means system identification
# %t in the string means size of the terminal
# %b in the string means number of bars displayed by ELinks
# Use " " if you don't want any User-Agent header to be sent at all.
set protocol.http.user_agent = "ELinks/0.11.4-3 (textmode; Debian; %s;
%t-%b)"
set protocol.user.mms.unix = "/usr/bin/streams mms://%h/%d"
set protocol.user.mms.unix-xwin = "/usr/bin/streams mms://%h/%d"
set protocol.user.rtsp.unix = "/usr/bin/streams rtsp://%h/%d"
set protocol.user.rtsp.unix-xwin = "/usr/bin/streams rtsp://%h/%d"
set mime.handler.iradio.unix.ask = 0
set mime.handler.iradio.unix-xwin.ask = 0
set mime.handler.iradio.unix.block = 1
set mime.handler.iradio.unix-xwin.block = 0
set mime.handler.iradio.unix.program = "/usr/bin/streams %"
set mime.handler.iradio.unix-xwin.program = "/usr/bin/xstreams %"
set mime.type.audio.x-mpegurl = "iradio"
set mime.type.audio.x-scpls = "iradio"
set mime.type.audio.mpeg = "iradio"
set mime.type.video.x-ms-asf = "iradio"