git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e02ecfc
)
Youtube: New site format for scraper
author
Ralf Ertzinger
<ralf@skytale.net>
Fri, 22 Mar 2013 18:52:48 +0000
(19:52 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Fri, 22 Mar 2013 18:52:48 +0000
(19:52 +0100)
videosite/YouTubeGrabber.pm
patch
|
blob
|
history
diff --git
a/videosite/YouTubeGrabber.pm
b/videosite/YouTubeGrabber.pm
index
e611a1f
..
879a3e2
100644
(file)
--- 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);