aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-08-20 03:07:04 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-08-20 03:07:04 +0800
commitdd565ac1ad22fe48f8e358d95ea912b1768b1e5a (patch)
tree0c13efbbc1f6d45f3210b458905b6dfc9049db19 /youtube_dl
parent5cdefc46257802708816e1d4ea7ff5cafe910ff6 (diff)
[theplatform] Use _download_json
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/theplatform.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py
index adaec3375..ba05ada39 100644
--- a/youtube_dl/extractor/theplatform.py
+++ b/youtube_dl/extractor/theplatform.py
@@ -2,7 +2,6 @@
from __future__ import unicode_literals
import re
-import json
import time
import hmac
import binascii
@@ -59,8 +58,7 @@ class ThePlatformBaseIE(InfoExtractor):
def get_metadata(self, path, video_id):
info_url = 'http://link.theplatform.com/s/%s?format=preview' % path
- info_json = self._download_webpage(info_url, video_id)
- info = json.loads(info_json)
+ info = self._download_json(info_url, video_id)
subtitles = {}
captions = info.get('captions')