projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'ceskatelevizesrt' of https://github.com/oskar456/youtube-dl into oskar4...
[youtube-dl]
/
youtube_dl
/
extractor
/
lrt.py
diff --git
a/youtube_dl/extractor/lrt.py
b/youtube_dl/extractor/lrt.py
index d72d470aa8dbb532f80f44796354dabd3de92261..9c2fbdd96788aeb4a854777cfcb6c67dff18f0ce 100644
(file)
--- a/
youtube_dl/extractor/lrt.py
+++ b/
youtube_dl/extractor/lrt.py
@@
-2,7
+2,6
@@
from __future__ import unicode_literals
import re
from __future__ import unicode_literals
import re
-import json
from .common import InfoExtractor
from ..utils import (
from .common import InfoExtractor
from ..utils import (
@@
-28,7
+27,6
@@
class LRTIE(InfoExtractor):
'params': {
'skip_download': True, # HLS download
},
'params': {
'skip_download': True, # HLS download
},
-
}
def _real_extract(self, url):
}
def _real_extract(self, url):
@@
-44,7
+42,9
@@
class LRTIE(InfoExtractor):
formats = []
for js in re.findall(r'(?s)config:\s*(\{.*?\})', webpage):
formats = []
for js in re.findall(r'(?s)config:\s*(\{.*?\})', webpage):
- data = json.loads(js_to_json(js))
+ data = self._parse_json(js, video_id, transform_source=js_to_json)
+ if 'provider' not in data:
+ continue
if data['provider'] == 'rtmp':
formats.append({
'format_id': 'rtmp',
if data['provider'] == 'rtmp':
formats.append({
'format_id': 'rtmp',