mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
[zoomus] Adjusted referer header, fixed formating for flake8
This commit is contained in:
parent
81acad1279
commit
aa13f124a5
|
@ -40,13 +40,15 @@ def _real_extract(self, url):
|
||||||
viewResolvtionsHeight = self._search_regex(r"viewResolvtionsHeight: (\d*)", webpage, 'res height', fatal=False)
|
viewResolvtionsHeight = self._search_regex(r"viewResolvtionsHeight: (\d*)", webpage, 'res height', fatal=False)
|
||||||
fileSize = parse_filesize(self._search_regex(r"fileSize: \'(.+)\'", webpage, 'fileSize', fatal=False))
|
fileSize = parse_filesize(self._search_regex(r"fileSize: \'(.+)\'", webpage, 'fileSize', fatal=False))
|
||||||
|
|
||||||
|
urlprefix = url.split("zoom.us")[0] + "zoom.us/"
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': url_or_none(video_url),
|
'url': url_or_none(video_url),
|
||||||
'width': int_or_none(viewResolvtionsWidth),
|
'width': int_or_none(viewResolvtionsWidth),
|
||||||
'height': int_or_none(viewResolvtionsHeight),
|
'height': int_or_none(viewResolvtionsHeight),
|
||||||
'http_headers': {'Accept': 'video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5',
|
'http_headers': {'Accept': 'video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5',
|
||||||
'Referer': 'https://zoom.us/'},
|
'Referer': urlprefix},
|
||||||
'ext': "mp4",
|
'ext': "mp4",
|
||||||
'filesize_approx': int_or_none(fileSize)
|
'filesize_approx': int_or_none(fileSize)
|
||||||
})
|
})
|
||||||
|
@ -69,7 +71,7 @@ def _verify_video_password(self, url, video_id, webpage):
|
||||||
'action': "viewdetailedpage",
|
'action': "viewdetailedpage",
|
||||||
'recaptcha': ""
|
'recaptcha': ""
|
||||||
})
|
})
|
||||||
validation_url = url.split("zoom.us")[0]+"zoom.us/rec/validate_meet_passwd"
|
validation_url = url.split("zoom.us")[0] + "zoom.us/rec/validate_meet_passwd"
|
||||||
validation_response = self._download_json(
|
validation_response = self._download_json(
|
||||||
validation_url, video_id,
|
validation_url, video_id,
|
||||||
note='Validating Password...',
|
note='Validating Password...',
|
||||||
|
|
Loading…
Reference in a new issue