aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-03-01 23:05:33 +0700
committerSergey M․ <dstftw@gmail.com>2014-03-01 23:05:33 +0700
commit5a0b26252ef50e640e2b85c6adeec1dd1d6ed899 (patch)
treed3afcfa4d6727c0f51087450e6ef4b3b838d9c0c /youtube_dl
parent7d78f0cc48ba25f89aeb60a2a05ddce5339645b7 (diff)
[ceskatelevize] Simplify
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/ceskatelevize.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/ceskatelevize.py b/youtube_dl/extractor/ceskatelevize.py
index 5311602fb..90a3dddb9 100644
--- a/youtube_dl/extractor/ceskatelevize.py
+++ b/youtube_dl/extractor/ceskatelevize.py
@@ -2,7 +2,6 @@
from __future__ import unicode_literals
import re
-import json
from .common import InfoExtractor
from ..utils import (
@@ -87,9 +86,9 @@ class CeskaTelevizeIE(InfoExtractor):
req.add_header('X-Requested-With', 'XMLHttpRequest')
req.add_header('Referer', url)
- playlistpage = self._download_webpage(req, video_id)
+ playlistpage = self._download_json(req, video_id)
- req = compat_urllib_request.Request(compat_urllib_parse.unquote(json.loads(playlistpage)['url']))
+ req = compat_urllib_request.Request(compat_urllib_parse.unquote(playlistpage['url']))
req.add_header('Referer', url)
playlist = self._download_xml(req, video_id)