aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimendum <timedum@gmail.com>2017-08-31 12:56:37 +0200
committerSergey M․ <dstftw@gmail.com>2017-09-03 16:39:12 +0700
commit0cbb841ba94c8d813ff81e817154c5491a796f20 (patch)
tree1ec54525a8e502360310294c8a4e92bd4793a964
parentd7c7100e3d920512a11bf7c6fee21e26da7ffa73 (diff)
[bpb] Fix extraction (closes #14043)
-rw-r--r--youtube_dl/extractor/bpb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bpb.py b/youtube_dl/extractor/bpb.py
index 9661ade4f..14bc0f77d 100644
--- a/youtube_dl/extractor/bpb.py
+++ b/youtube_dl/extractor/bpb.py
@@ -33,13 +33,13 @@ class BpbIE(InfoExtractor):
title = self._html_search_regex(
r'<h2 class="white">(.*?)</h2>', webpage, 'title')
video_info_dicts = re.findall(
- r"({\s*src:\s*'http://film\.bpb\.de/[^}]+})", webpage)
+ r"({\s*src\s*:\s*'https://film\.bpb\.de/[^}]+})", webpage)
formats = []
for video_info in video_info_dicts:
video_info = self._parse_json(video_info, video_id, transform_source=js_to_json)
- quality = video_info['quality']
video_url = video_info['src']
+ quality = 'high' if re.search(r'_high\.', video_url) else 'low'
formats.append({
'url': video_url,
'preference': 10 if quality == 'high' else 0,