]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[appletrailers] The request for the settings must have the trailer name in lower...
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 29 Sep 2013 18:59:19 +0000 (20:59 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 29 Sep 2013 18:59:19 +0000 (20:59 +0200)
youtube_dl/extractor/appletrailers.py

index b86c4b909bd073b8d98050e7ec261439c4872304..6d6237f8af79c02048da0e1b1624f33086a120b6 100644 (file)
@@ -95,7 +95,7 @@ class AppleTrailersIE(InfoExtractor):
                 duration = 60 * int(m.group('minutes')) + int(m.group('seconds'))
 
             first_url = trailer_info['url']
-            trailer_id = first_url.split('/')[-1].rpartition('_')[0]
+            trailer_id = first_url.split('/')[-1].rpartition('_')[0].lower()
             settings_json_url = compat_urlparse.urljoin(url, 'includes/settings/%s.json' % trailer_id)
             settings_json = self._download_webpage(settings_json_url, trailer_id, u'Downloading settings json')
             settings = json.loads(settings_json)