mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 15:57:23 +00:00
[canalplus] Modernize
This commit is contained in:
parent
660f9459da
commit
f3f0b8e403
1 changed files with 4 additions and 8 deletions
|
@ -106,15 +106,11 @@ class CanalplusIE(InfoExtractor):
|
||||||
continue
|
continue
|
||||||
format_id = fmt.tag
|
format_id = fmt.tag
|
||||||
if format_id == 'HLS':
|
if format_id == 'HLS':
|
||||||
hls_formats = self._extract_m3u8_formats(format_url, video_id, 'mp4')
|
formats.extend(self._extract_m3u8_formats(
|
||||||
for fmt in hls_formats:
|
format_url, video_id, 'mp4', preference=preference(format_id)))
|
||||||
fmt['preference'] = preference(format_id)
|
|
||||||
formats.extend(hls_formats)
|
|
||||||
elif format_id == 'HDS':
|
elif format_id == 'HDS':
|
||||||
hds_formats = self._extract_f4m_formats(format_url + '?hdcore=2.11.3', video_id)
|
formats.extend(self._extract_f4m_formats(
|
||||||
for fmt in hds_formats:
|
format_url + '?hdcore=2.11.3', video_id, preference=preference(format_id)))
|
||||||
fmt['preference'] = preference(format_id)
|
|
||||||
formats.extend(hds_formats)
|
|
||||||
else:
|
else:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': format_url,
|
'url': format_url,
|
||||||
|
|
Loading…
Reference in a new issue