Update amazonminitv.py [code fix]

This commit is contained in:
DEVENU 2024-07-22 20:10:29 +05:30 committed by GitHub
parent 7f36e69091
commit ae08e3b3a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,7 @@ def _real_extract(self, url):
title_info_ = prs['metaData']['contentDetails'] title_info_ = prs['metaData']['contentDetails']
formats, subtitles = [], {} formats, subtitles = [], {}
for mpd in playback_info: for mpd in playback_info:
mpd_fmts, mpd_subs = self._extract_mpd_formats_and_subtitles( mpd_fmts, mpd_subs = self._extract_mpd_formats_and_subtitles(
mpd['manifestURL'], asin, mpd_id=mpd['codec'], fatal=False) mpd['manifestURL'], asin, mpd_id=mpd['codec'], fatal=False)
formats.extend(mpd_fmts) formats.extend(mpd_fmts)
@ -106,8 +106,8 @@ def _real_extract(self, url):
'thumbnails': [{ 'thumbnails': [{
'id': 'thumbnailImage', 'id': 'thumbnailImage',
'url': title_info.get('thumbnailImage'), 'url': title_info.get('thumbnailImage'),
},{ }, {
'id':'seasonThumbnailImage', 'id': 'seasonThumbnailImage',
'url': title_info.get('thumbnailImage'), 'url': title_info.get('thumbnailImage'),
}], }],
'description': traverse_obj(title_info_, ('description', 'synopsis')), 'description': traverse_obj(title_info_, ('description', 'synopsis')),