projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[vimeo] Fix non-ASCII video passwords (Closes #7352)
[youtube-dl]
/
youtube_dl
/
extractor
/
srf.py
diff --git
a/youtube_dl/extractor/srf.py
b/youtube_dl/extractor/srf.py
index 25b589cb9abe86626d472fe757c9bb5c76d46f34..77eec0bc737885e22c77fd8fd3f97bb57ff31ec8 100644
(file)
--- a/
youtube_dl/extractor/srf.py
+++ b/
youtube_dl/extractor/srf.py
@@
-45,12
+45,12
@@
class SrfIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
def _real_extract(self, url):
video_id = self._match_id(url)
+ display_id = re.match(self._VALID_URL, url).group('display_id') or video_id
video_data = self._download_xml(
'http://il.srgssr.ch/integrationlayer/1.0/ue/srf/video/play/%s.xml' % video_id,
video_data = self._download_xml(
'http://il.srgssr.ch/integrationlayer/1.0/ue/srf/video/play/%s.xml' % video_id,
-
video
_id)
+
display
_id)
- display_id = re.match(self._VALID_URL, url).group('display_id')
title = xpath_text(
video_data, './AssetMetadatas/AssetMetadata/title', fatal=True)
thumbnails = [{
title = xpath_text(
video_data, './AssetMetadatas/AssetMetadata/title', fatal=True)
thumbnails = [{
@@
-68,10
+68,10
@@
class SrfIE(InfoExtractor):
format_id = '%s-%s' % (quality, item.attrib['protocol'])
if original_ext == 'f4m':
formats.extend(self._extract_f4m_formats(
format_id = '%s-%s' % (quality, item.attrib['protocol'])
if original_ext == 'f4m':
formats.extend(self._extract_f4m_formats(
- full_url + '?hdcore=3.4.0',
video
_id, f4m_id=format_id))
+ full_url + '?hdcore=3.4.0',
display
_id, f4m_id=format_id))
elif original_ext == 'm3u8':
formats.extend(self._extract_m3u8_formats(
elif original_ext == 'm3u8':
formats.extend(self._extract_m3u8_formats(
- full_url,
video
_id, 'mp4', m3u8_id=format_id))
+ full_url,
display
_id, 'mp4', m3u8_id=format_id))
else:
formats.append({
'url': full_url,
else:
formats.append({
'url': full_url,