Changeset 591
- Timestamp:
- 10/21/07 21:49:58 (6 years ago)
- Files:
-
- 1 modified
-
websites/ustreamer/channel2json.cgi (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
websites/ustreamer/channel2json.cgi
r568 r591 25 25 26 26 my %scraper = ( 27 'usc' => 'src="http://ustream.tv/([^"]*?).usc"',28 'irc' => 'name="channel" value="(\#[^,]*?)"',27 'usc' => qr{src="http://ustream\.tv/([^"]*?)\.usc"}o, 28 'irc' => qr{name="channel" value="(\#[^,]*?)"}o, 29 29 ); 30 30 … … 40 40 $_ => channel2any($_, $mode) 41 41 } map { 42 $_ =~ s{http:// www.ustream.tv/channel/}{}; $_42 $_ =~ s{http://(?:www\.)?ustream.tv/channel/}{}; $_ 43 43 } @channels; 44 44 … … 48 48 my ($channel, $mode) = @_; 49 49 my $content = channel_fetch($channel); 50 $content =~ m{ $scraper{$mode}};50 $content =~ $scraper{$mode}; 51 51 return $1 ? $1 : undef; 52 52 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)