From 53a8806ced224f0e4e5fcfde2d861329152cb1cb Mon Sep 17 00:00:00 2001 From: DEVENU <89598703+devenu85@users.noreply.github.com> Date: Tue, 23 Jul 2024 19:26:09 +0530 Subject: [PATCH] Update amazonminitv.py --- yt_dlp/extractor/amazonminitv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/amazonminitv.py b/yt_dlp/extractor/amazonminitv.py index 6511b16f2..282d0d563 100644 --- a/yt_dlp/extractor/amazonminitv.py +++ b/yt_dlp/extractor/amazonminitv.py @@ -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: