Update amazonminitv.py

This commit is contained in:
DEVENU 2024-07-23 19:26:09 +05:30 committed by GitHub
parent 696b1c7dc4
commit 53a8806ced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,9 +83,9 @@ class AmazonMiniTVIE(AmazonMiniTVBaseIE):
def _real_extract(self, url):
asin = f'amzn1.dv.gti.{self._match_id(url)}'
prs = self._call_api(asin, note='Downloading playback info')
playback_info = prs['widgets'][0]['data']['playbackAssets']['manifestData']
title_info = prs['widgets'][0]['data']['contentDetails']
title_info_ = prs['metaData']['contentDetails']
playback_info = traverse_obj(prs, ('widgets', 0, 'data', 'playbackAssets', 'manifestData'))
title_info = traverse_obj(prs, ('widgets', 0, 'data', 'contentDetails'))
title_info_ = traverse_obj(prs, ('metaData', 'contentDetails'))
formats, subtitles = [], {}
for mpd in playback_info: