mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 10:31:29 +00:00
[extractor/cloudflarestream] Fix video_id padding (#4384)
Fixes https://github.com/ytdl-org/youtube-dl/issues/26640 Authored by: haobinliang
This commit is contained in:
parent
db5f248204
commit
7f71cee020
|
@ -51,7 +51,7 @@ def _real_extract(self, url):
|
||||||
base_url = 'https://%s/%s/' % (domain, video_id)
|
base_url = 'https://%s/%s/' % (domain, video_id)
|
||||||
if '.' in video_id:
|
if '.' in video_id:
|
||||||
video_id = self._parse_json(base64.urlsafe_b64decode(
|
video_id = self._parse_json(base64.urlsafe_b64decode(
|
||||||
video_id.split('.')[1]), video_id)['sub']
|
video_id.split('.')[1] + '==='), video_id)['sub']
|
||||||
manifest_base_url = base_url + 'manifest/video.'
|
manifest_base_url = base_url + 'manifest/video.'
|
||||||
|
|
||||||
formats = self._extract_m3u8_formats(
|
formats = self._extract_m3u8_formats(
|
||||||
|
|
Loading…
Reference in a new issue