From d8ab956a608550ef6b4798880b9eb9978f735146 Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Fri, 22 Mar 2013 19:52:48 +0100 Subject: [PATCH] Youtube: New site format for scraper --- videosite/YouTubeGrabber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1