aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas <jonaskarlsson@fripost.org>2013-02-14 20:37:59 +0100
committerJonas <jonaskarlsson@fripost.org>2013-02-14 20:37:59 +0100
commite9db2346634507b2335be60b88eb084e244e11af (patch)
treefdfbcd64509d572454ff707fddd344e0d852ff54
parentb24d733991fae27578fb8f366501dccdc9577642 (diff)
downloadget-flash-videos-e9db2346634507b2335be60b88eb084e244e11af.tar.gz
BUG: Blip.pm could not find ID
-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;