mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[appletrailers] The request for the settings must have the trailer name in lower case (fixes #1329)
This commit is contained in:
parent
843530568f
commit
bb4aa62cf7
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def _clean_json(m):
|
||||||
duration = 60 * int(m.group('minutes')) + int(m.group('seconds'))
|
duration = 60 * int(m.group('minutes')) + int(m.group('seconds'))
|
||||||
|
|
||||||
first_url = trailer_info['url']
|
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_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 = self._download_webpage(settings_json_url, trailer_id, u'Downloading settings json')
|
||||||
settings = json.loads(settings_json)
|
settings = json.loads(settings_json)
|
||||||
|
|
Loading…
Reference in a new issue