Browse Source

[bloomberg] Fix ooyala url extraction

master
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
9d6192a5b8
1 changed files with 3 additions and 2 deletions
  1. 5
      youtube_dl/extractor/bloomberg.py

5
youtube_dl/extractor/bloomberg.py

@ -1,6 +1,7 @@
import re
from .common import InfoExtractor
from .ooyala import OoyalaIE
class BloombergIE(InfoExtractor):
@ -23,5 +24,5 @@ class BloombergIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url)
name = mobj.group('name')
webpage = self._download_webpage(url, name)
ooyala_url = self._og_search_video_url(webpage)
return self.url_result(ooyala_url, ie='Ooyala')
ooyala_code = self._search_regex(r'<source src="http://player.ooyala.com/player/[^/]+/([^".]+)', webpage, u'ooyala url')
return OoyalaIE._build_url_result(ooyala_code)
Loading…
Cancel
Save