1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-02 07:35:13 +00:00

[cleanup] Minor cleanup

This commit is contained in:
pukkandan
2021-11-04 03:40:35 +05:30
parent 8913ef74d7
commit a4211baff5
9 changed files with 24 additions and 22 deletions

View File

@@ -111,7 +111,7 @@ class PicartoVodIE(InfoExtractor):
vod_info = self._parse_json(
self._search_regex(
r'(?s)#vod-player["\']\s*,\s*(\{.+?\})\s*\)', webpage,
video_id),
'vod player'),
video_id, transform_source=js_to_json)
formats = self._extract_m3u8_formats(

View File

@@ -2513,7 +2513,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
fmt.get('qualityLabel') or quality.replace('audio_quality_', ''),
throttled and 'THROTTLED'))),
'source_preference': -10 if not throttled else -1,
'fps': int_or_none(fmt.get('fps')),
'fps': int_or_none(fmt.get('fps')) or None,
'height': height,
'quality': q(quality),
'tbr': tbr,