Skip to content

Commit

Permalink
[ie/WrestleUniverseVOD] Call API with device ID (yt-dlp#8272)
Browse files Browse the repository at this point in the history
Closes yt-dlp#8271
Authored by: bashonly
  • Loading branch information
bashonly authored and aalsuwaidi committed Apr 21, 2024
1 parent c95394f commit 91aa092
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yt_dlp/extractor/wrestleuniverse.py
Expand Up @@ -190,10 +190,7 @@ class WrestleUniverseVODIE(WrestleUniverseBaseIE):
def _real_extract(self, url):
lang, video_id = self._match_valid_url(url).group('lang', 'id')
metadata = self._download_metadata(url, video_id, lang, 'videoEpisodeFallbackData')
video_data = self._call_api(video_id, ':watch', 'watch', data={
# 'deviceId' is required if ignoreDeviceRestriction is False
'ignoreDeviceRestriction': True,
})
video_data = self._call_api(video_id, ':watch', 'watch', data={'deviceId': self._DEVICE_ID})

return {
'id': video_id,
Expand Down

0 comments on commit 91aa092

Please sign in to comment.