<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl

use LWP::Simple;

$url = 'http://www.br-online.de/alpha/centauri/archiv.shtml';

$dokument = get($url);
unless (defined $dokument) { print "ERROR: Kann $url nicht holen.\n"; exit };

#&lt;tr&gt;&lt;td valign="top"&gt;&amp;nbsp;20.12.98&lt;/td&gt;
#&lt;td&gt;&lt;a href="http://www.br-online.de/cgi-bin/ravi?v=alpha/centauri/v/&amp;f=981220.rm"&gt;Sind wir allein im Universum?&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;

$dokument =~ s/\n//g; $dokument =~ s/\r//g;

while ($dokument =~ /&lt;a href\=\"(http:\/\/www.br-online.de\/cgi-bin\/ravi.*?)\"&gt;(.*?)&lt;\/a&gt;/g) {
	$url = $1; $title = $2; 
	$title =~ s/( ?$|\?|&lt;\/*sup&gt;)//g; $title =~ s/( |&amp;nbsp;)/_/g;
	$title =~ s/(ä|&amp;auml;)/ae/g; $title =~ s/(ß|&amp;szlig;)/ss/g; $title =~ s/(ö|&amp;ouml;)/oe/g; $title =~ s/(ü|&amp;uuml;)/ue/g;
	$url =~ /([0-9]{6}).rm/; $title = $1."_".$title.".rm";
	#print "$url $title\n";
	$ravifile = get($url);
	unless (defined $ravifile) { print "ERROR: Kann $ravifile nicht holen.\n"; exit };
	
	# rtsp://ravi.br-online.de:5050/ravi/alpha/centauri/v/060412.rm
	# --stop--
	# pnm://ravi.br-online.de/ravi/alpha/centauri/v/060412.rm
		
	$ravifile =~ /(rtsp:\/\/.*[0-9]{6}.rm)/;	
	print "$1\n";
	print `mplayer -dumpstream $1`;
	print `mv stream.dump $title`;

				      			      }

#mplayer -dumpstream rtsp://ravi.br-online.de:5050/ravi/alpha/centauri/v/060607.rm
#stream.dump
</pre></body></html>