aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Taylor <njtaylor0101@gmail.com>2013-02-14 21:21:22 +0000
committerNigel Taylor <njtaylor0101@gmail.com>2013-02-14 21:21:22 +0000
commit2a368d5bd9a210f7206d71633aa30189d0c90717 (patch)
tree468fb62bb22d42973a3e3ece61b1280291d7df2d
parentedf5605cf037ff9897195790ecb304d20aa5c830 (diff)
parente9db2346634507b2335be60b88eb084e244e11af (diff)
downloadget-flash-videos-2a368d5bd9a210f7206d71633aa30189d0c90717.tar.gz
Merge branch 'master' of https://github.com/karjonas/get-flash-videos
-rw-r--r--lib/FlashVideo/Site/Blip.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/FlashVideo/Site/Blip.pm b/lib/FlashVideo/Site/Blip.pm
index f7ee7a3..b7b8d35 100644
--- a/lib/FlashVideo/Site/Blip.pm
+++ b/lib/FlashVideo/Site/Blip.pm
@@ -31,9 +31,9 @@ sub find_video {
}
}
- if (!$id) { ($id) = ($browser->content =~ m{data-posts-id="(\d+)"}s); }
- if (!$id) { ($id) = ($browser->content =~ m{data-disqus-id="(\d+)"}s); }
- if (!$id) { ($id) = ($browser->content =~ m{content="http://[^"]-(\d+)"}s); }
+ if (!$id) { ($id) = ($browser->content =~ m/data-posts-id="(\d+)"/); }
+ if (!$id) { ($id) = ($browser->content =~ m/data-disqus-id="(\d+)"/); }
+ if (!$id) { ($id) = ($embed_url =~ m/.*?(\d+)/); }
die "No ID found\n" unless $id;