From 91025428f2b78381d0f876818845402ac01e48a8 Mon Sep 17 00:00:00 2001 From: woro Date: Mon, 7 Jul 2008 11:50:27 +0000 Subject: muggle_getlyrics now works with the unmodified googlyrics git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@1205 e10066b5-e1e2-0310-b819-94efdf66514b --- scripts/googlyrics | 409 ----------------------------------------------- scripts/googlyrics.diff | 49 ------ scripts/muggle_getlyrics | 42 ++++- 3 files changed, 37 insertions(+), 463 deletions(-) delete mode 100755 scripts/googlyrics delete mode 100644 scripts/googlyrics.diff (limited to 'scripts') diff --git a/scripts/googlyrics b/scripts/googlyrics deleted file mode 100755 index 62d6532..0000000 --- a/scripts/googlyrics +++ /dev/null @@ -1,409 +0,0 @@ -#!/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/(.*?)