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

Fix Nuvid extractor

This commit is contained in:
Vidar Flesjø 2018-10-14 23:00:50 +02:00
parent 836fd554a3
commit f7e34e7bba

View File

@ -26,6 +26,10 @@ class NuvidIE(InfoExtractor):
video_id = self._match_id(url)
page_url = 'https://m.nuvid.com/video/%s' % video_id
# When dwnld_speed exists and has a value larger than the MP4 file's
# bitrate, Nuvid returns the MP4 URL
# It's unit is 100bytes/millisecond, see mobile-nuvid-min.js for the algorithm
self._set_cookie('nuvid.com', 'dwnld_speed', '10.0')
webpage = self._download_webpage(
page_url, video_id, 'Downloading video page')