X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fwhatever-dl.git;a=blobdiff_plain;f=src%2Fwebsites%2Fbliptv.rb;h=74f656d540a56e8f2e2272585e44a1be04f0baf3;hp=9322356a9e92353a31782e3a89c27500946b3939;hb=a4311fa8fc9115fe2d5821aa25f38b0025505b26;hpb=1bbc47ddc336e2cba7e8449613dee97f3c58d6ef diff --git a/src/websites/bliptv.rb b/src/websites/bliptv.rb index 9322356..74f656d 100644 --- a/src/websites/bliptv.rb +++ b/src/websites/bliptv.rb @@ -48,6 +48,14 @@ class Bliptv < Website return matches[1] end + # I've seen some free software videos encoded as OGG/Vorbis, too. + video_url_regex = /"Ogg Theora\/Vorbis \(\.ogg\)", "attribute" : "(.*?\.ogg)/i + matches = video_url_regex.match(page_data) + + if not matches.nil? + return matches[1] + end + # If that didn't work, try the WMV format, which is occasionally # used for the source as well. video_url_regex = /"Windows Media \(\.wmv\)", "attribute" : "(.*?\.wmv)/i @@ -60,7 +68,7 @@ class Bliptv < Website # If neither of the source formats are present, just grab the # video URL from the Flash variable and be done with it. - video_url_regex = /setPrimaryMediaUrl\("(.*?\.(flv|mov|wmv|mp4))/i + video_url_regex = /setPrimaryMediaUrl\("(.*?\.(flv|mov|wmv|mp4|ogg))/i matches = video_url_regex.match(page_data) if matches.nil?