0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-30 03:33:02 +00:00

[jwplatform] Carry long line

This commit is contained in:
Sergey M․ 2015-12-27 21:43:14 +06:00
parent 0b0a17ae9d
commit a95c26a06a

View file

@ -44,7 +44,8 @@ def _real_extract(self, url):
source_url = self._proto_relative_url(source['file']) source_url = self._proto_relative_url(source['file'])
source_type = source.get('type') or '' source_type = source.get('type') or ''
if source_type == 'application/vnd.apple.mpegurl': if source_type == 'application/vnd.apple.mpegurl':
m3u8_formats = self._extract_m3u8_formats(source_url, video_id, 'mp4', 'm3u8_native', fatal=False) m3u8_formats = self._extract_m3u8_formats(
source_url, video_id, 'mp4', 'm3u8_native', fatal=False)
if m3u8_formats: if m3u8_formats:
formats.extend(m3u8_formats) formats.extend(m3u8_formats)
elif source_type.startswith('audio'): elif source_type.startswith('audio'):