aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/kaltura.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-12-20 18:45:52 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-12-20 18:45:52 +0800
commit8ab7e6c4cc93d998a39fda9733587b58f5252999 (patch)
tree6ced34cc5a805e820a2f48bb21d4928bd10525be /youtube_dl/extractor/kaltura.py
parentc80db5d3988b31a1f17b2e894099ff16b6b777c4 (diff)
[kaltura] Improve widget ID extraction (closes #11480)
Diffstat (limited to 'youtube_dl/extractor/kaltura.py')
-rw-r--r--youtube_dl/extractor/kaltura.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py
index 91bc3a0a7..c0ddad6f9 100644
--- a/youtube_dl/extractor/kaltura.py
+++ b/youtube_dl/extractor/kaltura.py
@@ -107,7 +107,7 @@ class KalturaIE(InfoExtractor):
(?P<q1>['\"])wid(?P=q1)\s*:\s*
(?P<q2>['\"])_?(?P<partner_id>(?:(?!(?P=q2)).)+)(?P=q2),.*?
(?P<q3>['\"])entry_?[Ii]d(?P=q3)\s*:\s*
- (?P<q4>['\"])(?P<id>(?:(?!(?P=q4)).)+)(?P=q4),
+ (?P<q4>['\"])(?P<id>(?:(?!(?P=q4)).)+)(?P=q4)(?:,|\s*\})
""", webpage) or
re.search(
r'''(?xs)
@@ -266,6 +266,9 @@ class KalturaIE(InfoExtractor):
# skip for now.
if f.get('fileExt') == 'chun':
continue
+ if not f.get('fileExt') and f.get('containerFormat') == 'qt':
+ # QT indicates QuickTime; some videos have broken fileExt
+ f['fileExt'] = 'mov'
video_url = sign_url(
'%s/flavorId/%s' % (data_url, f['id']))
# audio-only has no videoCodecId (e.g. kaltura:1926081:0_c03e1b5g