diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-01-23 12:00:25 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-01-23 12:00:25 +0100 |
commit | 501f13fbf3d1f7225f91e3e0ad008df2cd3219f1 (patch) | |
tree | df61d935e3977cbd9ed6676c83a2c5a83e8619ee /youtube_dl/extractor/generic.py | |
parent | ba551681573aafedf9a0a234a9522cc06b12a4b7 (diff) |
[generic] Add support for Cinerama player (Fixes #4752)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index b893d8149..a028c4ed4 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -489,6 +489,16 @@ class GenericIE(InfoExtractor): 'title': 'Jack Tips: 5 Steps to Permanent Gut Healing', } }, + # Cinerama player + { + 'url': 'http://www.abc.net.au/7.30/content/2015/s4164797.htm', + 'info_dict': { + 'id': '730m_DandD_1901_512k', + 'ext': 'mp4', + 'uploader': 'www.abc.net.au', + 'title': 'Game of Thrones with dice - Dungeons and Dragons fantasy role-playing game gets new life - 19/01/2015', + } + } ] def report_following_redirect(self, new_url): @@ -1047,6 +1057,10 @@ class GenericIE(InfoExtractor): ["']?url["']?\s*:\s*["']([^"']+)["'] ''', webpage)) if not found: + # Cinerama player + found = re.findall( + r"cinerama\.embedPlayer\(\s*\'[^']+\',\s*'([^']+)'", webpage) + if not found: # Try to find twitter cards info found = filter_video(re.findall( r'<meta (?:property|name)="twitter:player:stream" (?:content|value)="(.+?)"', webpage)) |