From: Yen Chi Hsuan Date: Wed, 8 Apr 2015 12:21:34 +0000 (+0800) Subject: [theplatform] Rework on inside X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a662163fd5b3c9b1221b8aeaf54ed9083af8574f;p=youtube-dl [theplatform] Rework on inside --- diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py index a7d060459..bcddd23e4 100644 --- a/youtube_dl/extractor/theplatform.py +++ b/youtube_dl/extractor/theplatform.py @@ -139,7 +139,9 @@ class ThePlatformIE(InfoExtractor): formats = self._extract_f4m_formats(f4m_url, video_id) else: formats = [] - switch = body.find(_x('.//smil:switch')) + switch = body.find(_x('smil:switch')) + if switch is None: + switch = body.find(_x('smil:par//smil:switch')) if switch is not None: base_url = head.find(_x('smil:meta')).attrib['base'] for f in switch.findall(_x('smil:video')):