mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-13 23:42:52 +08:00
1080p Support
Added support for 1080p video download
This commit is contained in:
parent
6310acf512
commit
b71693ffde
@ -1,6 +1,8 @@
|
||||
# coding: utf-8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import re
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
@ -59,6 +61,9 @@ class HotStarIE(InfoExtractor):
|
||||
video_id, 'Downloading %s JSON metadata' % f, fatal=False)
|
||||
if format_data:
|
||||
format_url = format_data['src']
|
||||
format_url_1080p = re.sub(r'(_STAR.mp4)', r'3000,4500,\1', format_url)
|
||||
if self._is_valid_url(format_url_1080p, video_id, '1080p video'):
|
||||
format_url = format_url_1080p
|
||||
ext = determine_ext(format_url)
|
||||
if ext == 'm3u8':
|
||||
formats.extend(self._extract_m3u8_formats(format_url, video_id, 'mp4', m3u8_id='hls', fatal=False))
|
||||
|
Loading…
Reference in New Issue
Block a user