My favorites
▼
|
Sign in
xstreamripper
streamripper gui for MacOS X
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
streamripper
/
fetch_external_metadata.pl
r21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#! /usr/bin/perl
###########################################################################
# This is an example script that sends external metadata to streamripper.
# It implements an external program that:
# 1) Fetches a web page
# 2) Searches the web page for the artist and title information
# 3) Sends the information to streamripper
#
# To invoke the script, do this:
# streamripper URL -E "perl fetch_external_metadata.pl META_URL"
#
# This assumes that META_URL is the URL with the artist/title information
#
# You will need perl and LWP::Simple installed to run this script.
# On unix, you install LWP::Simple as root, like this:
# perl -MCPAN -e 'install LWP::Simple';
# On windows, LWP::Simple is included in the ActiveState perl distribution.
#
# This script is in the public domain. You are free to use, modify and
# redistribute without restrictions.
###########################################################################
use LWP::Simple;
if ($#ARGV != 0) {
die "Usage: fetch_external_metadata.pl URL\n";
}
$url = $ARGV[0];
while (1) {
my $content = get $url;
if ($content =~ m/title="(.*)" artist="(.*)"/) {
$title = "TITLE=$1\n";
$artist = "ARTIST=$2\n";
$end_of_record = ".\n";
$meta_data = $title . $artist . $end_of_record;
syswrite (STDOUT, $meta_data, length($meta_data));
}
sleep (10);
}
Show details
Hide details
Change log
r2
by yoav.yerushalmi on Dec 7, 2007
Diff
initial checkin
Go to:
....lproj/MainMenu~.nib/objects.nib
...German.lproj/Localizable.strings
...rman.lproj/MainMenu.nib/info.nib
/trunk/German.lproj/MainMenu~.nib
...n.lproj/MainMenu.nib/classes.nib
...lian.lproj/MainMenu.nib/info.nib
/trunk/Italian.lproj/MainMenu~.nib
...panese.lproj/Localizable.strings
...oj/MainMenu copy.nib/objects.nib
...oj/MainMenu.nib/keyedobjects.nib
/trunk/ParseShoutcastWWW.pl
/trunk/TODO.txt
/trunk/XStreamRipper.xcodeproj
...Ripper.xcodeproj/project.pbxproj
...eamRipper.xcodeproj/yoav.mode1v3
...ld/Development/XStreamRipper.app
...pment/XStreamRipper.app/Contents
...app/Contents/MacOS/XStreamRipper
...treamRipper.app/Contents/PkgInfo
...eamRipper.app/Contents/Resources
...urces/Italian.lproj/MainMenu.nib
...n.lproj/MainMenu.nib/classes.nib
...oj/MainMenu.nib/keyedobjects.nib
.../XStreamRipper.build/JavaClasses
...uild/Objects-normal/LinkFileList
...mRipper.build/XStreamRipper~.dep
...nt/streamlib.build/streamlib.dep
...pper.pbxindex/protocols.pbxbtree
...eamRipper.pbxindex/refs.pbxbtree
...per.pbxindex/subclasses.pbxbtree
/trunk/images/song.png
/trunk/libogg-1.1.3/aclocal.m4
/trunk/libogg-1.1.3/debian
...1.3/debian/libogg0.README.Debian
/trunk/libogg-1.1.3/debian/rules
...nk/libogg-1.1.3/doc/framing.html
/trunk/libogg-1.1.3/doc/index.html
...ogg-1.1.3/doc/libogg/Makefile.in
...1.1.3/doc/libogg/bitpacking.html
.../libogg/ogg_page_granulepos.html
...doc/libogg/ogg_page_packets.html
...3/doc/libogg/ogg_sync_reset.html
...1.3/doc/libogg/oggpack_bits.html
...c/libogg/oggpack_get_buffer.html
...doc/libogg/oggpack_readinit.html
....3/doc/libogg/oggpack_reset.html
....3/doc/libogg/oggpack_write.html
...g-1.1.3/doc/libogg/overview.html
...3/doc/libogg/vorbis_comment.html
/trunk/libogg-1.1.3/doc/stream.png
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1361 bytes, 41 lines
View raw file
File properties
svn:executable
*
Powered by
Google Project Hosting