1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

[zoomus] Adjusted referer header, fixed formating for flake8

This commit is contained in:
Roman Sebastian Karwacik 2020-04-21 09:48:35 +02:00
parent 2a4bda20a9
commit 8c0e65445c

View File

@ -40,13 +40,15 @@ class ZoomUSIE(InfoExtractor):
viewResolvtionsHeight = self._search_regex(r"viewResolvtionsHeight: (\d*)", webpage, 'res height', fatal=False)
fileSize = parse_filesize(self._search_regex(r"fileSize: \'(.+)\'", webpage, 'fileSize', fatal=False))
urlprefix = url.split("zoom.us")[0] + "zoom.us/"
formats = []
formats.append({
'url': url_or_none(video_url),
'width': int_or_none(viewResolvtionsWidth),
'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',
'Referer': 'https://zoom.us/'},
'Referer': urlprefix},
'ext': "mp4",
'filesize_approx': int_or_none(fileSize)
})