projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cdefc4
)
[theplatform] Use _download_json
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 19 Aug 2015 19:07:04 +0000
(
03:07
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 19 Aug 2015 19:07:04 +0000
(
03:07
+0800)
youtube_dl/extractor/theplatform.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/theplatform.py
b/youtube_dl/extractor/theplatform.py
index adaec337579e0bdca194b0b6cf44cefd918edd31..ba05ada391ed91baa8ffa46d8b5d678e31f50513 100644
(file)
--- 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')