From 57d7ee812c8be1bd118471512682cb3393ce595f Mon Sep 17 00:00:00 2001 From: woro Date: Fri, 11 Apr 2008 20:11:00 +0000 Subject: merge mp3ng branch into trunk git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@1173 e10066b5-e1e2-0310-b819-94efdf66514b --- scripts/COPYRIGHT | 4 + scripts/googlyrics | 409 +++++++++++++++++++++++++++++++++++++++++++ scripts/googlyrics.diff | 49 ++++++ scripts/muggle-image-convert | 42 ++--- scripts/muggle_getlyrics | 35 ++++ 5 files changed, 518 insertions(+), 21 deletions(-) create mode 100755 scripts/googlyrics create mode 100644 scripts/googlyrics.diff create mode 100755 scripts/muggle_getlyrics (limited to 'scripts') diff --git a/scripts/COPYRIGHT b/scripts/COPYRIGHT index b0345b9..69933c4 100644 --- a/scripts/COPYRIGHT +++ b/scripts/COPYRIGHT @@ -1,3 +1,7 @@ +googlyrics is an adapted copy from +http://www.kde-apps.org/content/show.php/GoogLyrics?content=73850 + + The content of languages.txt is generated from the file iso_639.xml which contains this copyright: diff --git a/scripts/googlyrics b/scripts/googlyrics new file mode 100755 index 0000000..62d6532 --- /dev/null +++ b/scripts/googlyrics @@ -0,0 +1,409 @@ +#!/usr/bin/perl +use strict; # Disabled for release version +use warnings; +use WWW::Mechanize; +use IO::File; +use HTML::Entities; +use Text::Iconv; + +#Necessary globals +our $mech = WWW::Mechanize->new(); +$mech->agent_alias( 'Linux Mozilla' ); + +#Sites used for URL matching + +my %metro = ( + site => "metrolyrics.com", + name => "Metrolyrics", + regex => qr/Ringtone \*\*\*<\/a>(.*?) 0, + plain => 0, +); + +my %freel = ( + site => "free-lyrics.net", + name => "Free-Lyrics", + regex => qr/(.*?)<\/td>/msi, + disabled => 0, + plain => 0, +); + +my %hotly = ( + site => "hotlyrics.net", + name => "Hot Lyrics", + regex => qr/(.*?)