From e2c0e36d23fb426181db77cd372f5487941d4b55 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 24 Jun 2017 14:36:30 +0300 Subject: [PATCH] Fix regex for new site layout --- lib/Lyrics/Fetcher/LyricsTranslate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lyrics/Fetcher/LyricsTranslate.pm b/lib/Lyrics/Fetcher/LyricsTranslate.pm index 983c548..3c1016e 100644 --- a/lib/Lyrics/Fetcher/LyricsTranslate.pm +++ b/lib/Lyrics/Fetcher/LyricsTranslate.pm @@ -42,7 +42,7 @@ sub fetch { return } $tree = HTML::TreeBuilder->new_from_content($response->{content}); - my $node = $tree->look_down(class => qr/\btranslate-node-text\b/); + my $node = $tree->look_down(class => qr/(?look_down(class => qr/\bltf\b/); my @pars = $ltf->look_down(class => 'par'); join "\n", map { -- 2.39.2