mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-13 20:53:06 +00:00
[plex:app] shorten long line in media_json
This commit is contained in:
parent
dda155b2e1
commit
6b48656488
@ -434,8 +434,11 @@ class PlexAppIE(PlexWatchBaseIE):
|
||||
provider, key, display_id = self._match_valid_url(url).group('provider', 'key', 'id')
|
||||
key = urllib.parse.unquote(key)
|
||||
media_json = self._download_json(
|
||||
f'{self._CDN_ENDPOINT[provider]}{key}', display_id, query={'uri': f'provider://{provider}{key}', 'X-Plex-Token': PlexWatchBaseIE._TOKEN},
|
||||
headers={'Accept': 'application/json'})['MediaContainer']['Metadata'][0]
|
||||
f'{self._CDN_ENDPOINT[provider]}{key}', display_id, headers={'Accept': 'application/json'},
|
||||
query={
|
||||
'uri': f'provider://{provider}{key}',
|
||||
'X-Plex-Token': PlexWatchBaseIE._TOKEN
|
||||
})['MediaContainer']['Metadata'][0]
|
||||
|
||||
# check if publicPagesURL, if exists redirect to PlexWatch*IE, else handle manually
|
||||
if media_json.get('publicPagesURL'):
|
||||
|
Loading…
Reference in New Issue
Block a user