Youtube: Simplify regex for scraping
[videosite.git] / videosite / YouTubeGrabber.pm
index 879a3e2..10b1c2e 100644 (file)
@@ -246,7 +246,7 @@ sub _parse_by_scrape {
             $e = $p->get_text();
             $self->debug("Found script: %s", $e);
 
-             if ($e =~ m|ytplayer\.config\s*=\s*(.+)(?:;)$|) {
+             if ($e =~ m|ytplayer\.config\s*=\s*(.+);$|) {
                 my $args = $1;
                 $self->debug("Found PLAYER_CONFIG: %s", $args);