mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-03 17:00:51 +01:00
[extractor/common] Pass arguments to _parse_jwplayer_formats and PEP8
This commit is contained in:
parent
0236cd0dfd
commit
1a2192cb90
|
@ -2198,7 +2198,9 @@ def _parse_jwplayer_data(self, jwplayer_data, video_id=None, require_title=True,
|
||||||
|
|
||||||
this_video_id = video_id or video_data['mediaid']
|
this_video_id = video_id or video_data['mediaid']
|
||||||
|
|
||||||
formats = self._parse_jwplayer_formats(video_data['sources'], this_video_id)
|
formats = self._parse_jwplayer_formats(
|
||||||
|
video_data['sources'], video_id=this_video_id, m3u8_id=m3u8_id,
|
||||||
|
mpd_id=mpd_id, rtmp_params=rtmp_params, base_url=base_url)
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
|
@ -2285,7 +2287,6 @@ def _parse_jwplayer_formats(self, jwplayer_sources_data, video_id=None,
|
||||||
formats.append(a_format)
|
formats.append(a_format)
|
||||||
return formats
|
return formats
|
||||||
|
|
||||||
|
|
||||||
def _live_title(self, name):
|
def _live_title(self, name):
|
||||||
""" Generate the title for a live video """
|
""" Generate the title for a live video """
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user