mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-18 13:20:46 +02:00
[cnet] fix info extraction
This commit is contained in:
parent
090eb8e25f
commit
75313f2baa
@ -51,9 +51,7 @@ def _real_extract(self, url):
|
|||||||
uploader = None
|
uploader = None
|
||||||
uploader_id = None
|
uploader_id = None
|
||||||
|
|
||||||
mpx_account = data['config']['uvpConfig']['default']['mpx_account']
|
metadata = self.get_metadata('kYEXFC/%s' % list(vdata['files'].values())[0], video_id)
|
||||||
|
|
||||||
metadata = self.get_metadata('%s/%s' % (mpx_account, list(vdata['files'].values())[0]), video_id)
|
|
||||||
description = vdata.get('description') or metadata.get('description')
|
description = vdata.get('description') or metadata.get('description')
|
||||||
duration = int_or_none(vdata.get('duration')) or metadata.get('duration')
|
duration = int_or_none(vdata.get('duration')) or metadata.get('duration')
|
||||||
|
|
||||||
@ -62,7 +60,7 @@ def _real_extract(self, url):
|
|||||||
for (fkey, vid) in vdata['files'].items():
|
for (fkey, vid) in vdata['files'].items():
|
||||||
if fkey == 'hls_phone' and 'hls_tablet' in vdata['files']:
|
if fkey == 'hls_phone' and 'hls_tablet' in vdata['files']:
|
||||||
continue
|
continue
|
||||||
release_url = 'http://link.theplatform.com/s/%s/%s?format=SMIL&mbr=true' % (mpx_account, vid)
|
release_url = 'http://link.theplatform.com/s/kYEXFC/%s?format=SMIL&mbr=true' % vid
|
||||||
if fkey == 'hds':
|
if fkey == 'hds':
|
||||||
release_url += '&manifest=f4m'
|
release_url += '&manifest=f4m'
|
||||||
tp_formats, tp_subtitles = self._extract_theplatform_smil(release_url, video_id, 'Downloading %s SMIL data' % fkey)
|
tp_formats, tp_subtitles = self._extract_theplatform_smil(release_url, video_id, 'Downloading %s SMIL data' % fkey)
|
||||||
|
Loading…
Reference in New Issue
Block a user