From: Ralf Ertzinger Date: Fri, 22 Mar 2013 18:52:48 +0000 (+0100) Subject: Youtube: New site format for scraper X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=d8ab956a608550ef6b4798880b9eb9978f735146 Youtube: New site format for scraper --- diff --git a/videosite/YouTubeGrabber.pm b/videosite/YouTubeGrabber.pm index e611a1f..879a3e2 100644 --- a/videosite/YouTubeGrabber.pm +++ b/videosite/YouTubeGrabber.pm @@ -246,7 +246,7 @@ sub _parse_by_scrape { $e = $p->get_text(); $self->debug("Found script: %s", $e); - if ($e =~ m|\x27PLAYER_CONFIG\x27:\s+(.+)(?:\}\);)?|) { + if ($e =~ m|ytplayer\.config\s*=\s*(.+)(?:;)$|) { my $args = $1; $self->debug("Found PLAYER_CONFIG: %s", $args);