diff options
author | Jonas <jonaskarlsson@fripost.org> | 2013-02-14 20:37:59 +0100 |
---|---|---|
committer | Jonas <jonaskarlsson@fripost.org> | 2013-02-14 20:37:59 +0100 |
commit | e9db2346634507b2335be60b88eb084e244e11af (patch) | |
tree | fdfbcd64509d572454ff707fddd344e0d852ff54 | |
parent | b24d733991fae27578fb8f366501dccdc9577642 (diff) | |
download | get-flash-videos-e9db2346634507b2335be60b88eb084e244e11af.tar.gz |
BUG: Blip.pm could not find ID
-rw-r--r-- | lib/FlashVideo/Site/Blip.pm | 6 |
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; |