mirror of https://github.com/yt-dlp/yt-dlp.git
[ie/WrestleUniverseVOD] Call API with device ID (#8272)
Closes #8271 Authored by: bashonly
This commit is contained in:
parent
0730d5a966
commit
b095fd3fa9
|
@ -190,10 +190,7 @@ class WrestleUniverseVODIE(WrestleUniverseBaseIE):
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
lang, video_id = self._match_valid_url(url).group('lang', 'id')
|
lang, video_id = self._match_valid_url(url).group('lang', 'id')
|
||||||
metadata = self._download_metadata(url, video_id, lang, 'videoEpisodeFallbackData')
|
metadata = self._download_metadata(url, video_id, lang, 'videoEpisodeFallbackData')
|
||||||
video_data = self._call_api(video_id, ':watch', 'watch', data={
|
video_data = self._call_api(video_id, ':watch', 'watch', data={'deviceId': self._DEVICE_ID})
|
||||||
# 'deviceId' is required if ignoreDeviceRestriction is False
|
|
||||||
'ignoreDeviceRestriction': True,
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
|
Loading…
Reference in New Issue