summary refs log tree commit diff
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-03-05 21:10:00 +0100
committerremitamine <remitamine@gmail.com>2016-03-05 21:10:00 +0100
commit75313f2baaec17062d60255976a8afd0fcf995d4 (patch)
treebc6159ec06c10a40ef8e2dc211f765bc0a138065
parent090eb8e25f08f36827772ced4c7420b59c616b8b (diff)
downloadyoutube-dl-75313f2baaec17062d60255976a8afd0fcf995d4.tar.gz
youtube-dl-75313f2baaec17062d60255976a8afd0fcf995d4.tar.xz
youtube-dl-75313f2baaec17062d60255976a8afd0fcf995d4.zip
[cnet] fix info extraction
-rw-r--r--youtube_dl/extractor/cnet.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/cnet.py b/youtube_dl/extractor/cnet.py
index 5c3908f72..3cf0bf95b 100644
--- a/youtube_dl/extractor/cnet.py
+++ b/youtube_dl/extractor/cnet.py
@@ -51,9 +51,7 @@ class CNETIE(ThePlatformIE):
             uploader = None
             uploader_id = None
 
-        mpx_account = data['config']['uvpConfig']['default']['mpx_account']
-
-        metadata = self.get_metadata('%s/%s' % (mpx_account, list(vdata['files'].values())[0]), video_id)
+        metadata = self.get_metadata('kYEXFC/%s' % list(vdata['files'].values())[0], video_id)
         description = vdata.get('description') or metadata.get('description')
         duration = int_or_none(vdata.get('duration')) or metadata.get('duration')
 
@@ -62,7 +60,7 @@ class CNETIE(ThePlatformIE):
         for (fkey, vid) in vdata['files'].items():
             if fkey == 'hls_phone' and 'hls_tablet' in vdata['files']:
                 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':
                 release_url += '&manifest=f4m'
             tp_formats, tp_subtitles = self._extract_theplatform_smil(release_url, video_id, 'Downloading %s SMIL data' % fkey)