From 3639df54c3298e35b5ae2a96a25bc4d3c38950d0 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:18:27 +0000 Subject: [PATCH] [extractor/paramountplus] Update API token (#5285) Closes #5273 Authored by: bashonly --- yt_dlp/extractor/paramountplus.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/paramountplus.py b/yt_dlp/extractor/paramountplus.py index fb6d07ac7..7e472a63e 100644 --- a/yt_dlp/extractor/paramountplus.py +++ b/yt_dlp/extractor/paramountplus.py @@ -40,7 +40,6 @@ class ParamountPlusIE(CBSBaseIE): 'params': { 'skip_download': 'm3u8', }, - 'expected_warnings': ['Ignoring subtitle tracks'], # TODO: Investigate this }, { 'url': 'https://www.paramountplus.com/shows/video/6hSWYWRrR9EUTz7IEe5fJKBhYvSUfexd/', 'info_dict': { @@ -63,7 +62,6 @@ class ParamountPlusIE(CBSBaseIE): 'params': { 'skip_download': 'm3u8', }, - 'expected_warnings': ['Ignoring subtitle tracks'], }, { 'url': 'https://www.paramountplus.com/movies/video/vM2vm0kE6vsS2U41VhMRKTOVHyQAr6pC/', 'info_dict': { @@ -118,8 +116,11 @@ class ParamountPlusIE(CBSBaseIE): def _extract_video_info(self, content_id, mpx_acc=2198311517): items_data = self._download_json( - 'https://www.paramountplus.com/apps-api/v2.0/androidtv/video/cid/%s.json' % content_id, - content_id, query={'locale': 'en-us', 'at': 'ABCqWNNSwhIqINWIIAG+DFzcFUvF8/vcN6cNyXFFfNzWAIvXuoVgX+fK4naOC7V8MLI='}, headers=self.geo_verification_headers()) + f'https://www.paramountplus.com/apps-api/v2.0/androidtv/video/cid/{content_id}.json', + content_id, query={ + 'locale': 'en-us', + 'at': 'ABCXgPuoStiPipsK0OHVXIVh68zNys+G4f7nW9R6qH68GDOcneW6Kg89cJXGfiQCsj0=', + }, headers=self.geo_verification_headers()) asset_types = { item.get('assetType'): {