From 7f36e690914197f945bb38f560edc426c824c336 Mon Sep 17 00:00:00 2001 From: DEVENU <89598703+devenu85@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:58:47 +0530 Subject: [PATCH] Update amazonminitv.py --- yt_dlp/extractor/amazonminitv.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/yt_dlp/extractor/amazonminitv.py b/yt_dlp/extractor/amazonminitv.py index 9e68582af..90af46f68 100644 --- a/yt_dlp/extractor/amazonminitv.py +++ b/yt_dlp/extractor/amazonminitv.py @@ -1,5 +1,3 @@ -import json - from .common import InfoExtractor from ..utils import ExtractorError, int_or_none, traverse_obj, try_get @@ -13,13 +11,13 @@ def _real_initialize(self): def _call_api(self, asin, data=None, note=None): query = { - 'contentId':asin, + 'contentId': asin, } if data: query.update(data) resp = self._download_json( - f'https://www.amazon.in/minitv-pr/api/web/page/title', + 'https://www.amazon.in/minitv-pr/api/web/page/title', asin, note=note, headers={ 'Content-Type': 'application/json', 'accounttype': 'NEW_GUEST_ACCOUNT', @@ -106,11 +104,11 @@ def _real_extract(self, url): 'subtitles': subtitles, 'language': traverse_obj(title_info, ('audioTracks', 0)), 'thumbnails': [{ - 'id': "thumbnailImage", + 'id': 'thumbnailImage', 'url': title_info.get('thumbnailImage'), },{ - 'id':"seasonThumbnailImage", - 'url': title_info.get('thumbnailImage') + 'id':'seasonThumbnailImage', + 'url': title_info.get('thumbnailImage'), }], 'description': traverse_obj(title_info_, ('description', 'synopsis')), 'release_timestamp': int_or_none(try_get(title_info_, lambda x: x['publicReleaseDateUTC'] / 1000)),