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:
d4fae22
)
Youtube: Simplify regex for scraping
author
Ralf Ertzinger
<ralf@skytale.net>
Sat, 23 Mar 2013 13:14:20 +0000
(14:14 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Sat, 23 Mar 2013 13:14:20 +0000
(14:14 +0100)
videosite/YouTubeGrabber.pm
patch
|
blob
|
history
diff --git
a/videosite/YouTubeGrabber.pm
b/videosite/YouTubeGrabber.pm
index
879a3e2
..
10b1c2e
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|ytplayer\.config\s*=\s*(.+)
(?:;)
$|) {
+ if ($e =~ m|ytplayer\.config\s*=\s*(.+)
;
$|) {
my $args = $1;
$self->debug("Found PLAYER_CONFIG: %s", $args);