From: Michal Čihař Date: Tue, 31 Jan 2017 06:59:55 +0000 (+0100) Subject: [iprima] Fix extraction (closes #11920, closes #11896) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0bbcc8a10a4bd339540bf149dd263419fd8b6e66;p=youtube-dl [iprima] Fix extraction (closes #11920, closes #11896) --- diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py index da2cdc656..0fe576883 100644 --- a/youtube_dl/extractor/iprima.py +++ b/youtube_dl/extractor/iprima.py @@ -65,7 +65,7 @@ class IPrimaIE(InfoExtractor): options = self._parse_json( self._search_regex( - r'(?s)var\s+playerOptions\s*=\s*({.+?});', + r'(?s)(?:TDIPlayerOptions|playerOptions)\s*=\s*({.+?});\s*\]\]', playerpage, 'player options', default='{}'), video_id, transform_source=js_to_json, fatal=False) if options: