Skip to content

Commit

Permalink
[CI] auto update yt_dlp to upstream commit 111b61ddef305584d45a48e7b7…
Browse files Browse the repository at this point in the history
…c73ffcedf062a2
  • Loading branch information
github-actions[bot] committed May 28, 2024
1 parent fdf58d9 commit ae7abc4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
8 changes: 7 additions & 1 deletion lib/yt_dlp/extractor/peertube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1470,11 +1470,15 @@ def _real_extract(self, url):

title = video['name']

formats = []
formats, is_live = [], False
files = video.get('files') or []
for playlist in (video.get('streamingPlaylists') or []):
if not isinstance(playlist, dict):
continue
if playlist_url := url_or_none(playlist.get('playlistUrl')):
is_live = True
formats.extend(self._extract_m3u8_formats(
playlist_url, video_id, fatal=False, live=True))
playlist_files = playlist.get('files')
if not (playlist_files and isinstance(playlist_files, list)):
continue
Expand All @@ -1498,6 +1502,7 @@ def _real_extract(self, url):
f['vcodec'] = 'none'
else:
f['fps'] = int_or_none(file_.get('fps'))
is_live = False
formats.append(f)

description = video.get('description')
Expand Down Expand Up @@ -1555,6 +1560,7 @@ def channel_data(field, type_):
'categories': categories,
'formats': formats,
'subtitles': subtitles,
'is_live': is_live,
'webpage_url': webpage_url,
}

Expand Down
3 changes: 2 additions & 1 deletion lib/yt_dlp/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
metavar='CLIENT[:OS]', dest='impersonate', default=None,
help=(
'Client to impersonate for requests. E.g. chrome, chrome-110, chrome:windows-10. '
'Pass --impersonate="" to impersonate any client.'),
'Pass --impersonate="" to impersonate any client. Note that forcing impersonation '
'for all requests may have a detrimental impact on download speed and stability'),
)
network.add_option(
'--list-impersonate-targets',
Expand Down
6 changes: 3 additions & 3 deletions lib/yt_dlp/version.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Autogenerated by devscripts/update-version.py

__version__ = '2024.05.26'
__version__ = '2024.05.27'

RELEASE_GIT_HEAD = 'ae2af1104f80caf2f47544763a33db2c17a3e1de'
RELEASE_GIT_HEAD = '12b248ce60be1aa1362edd839d915bba70dbee4b'

VARIANT = None

Expand All @@ -12,4 +12,4 @@

ORIGIN = 'yt-dlp/yt-dlp'

_pkg_version = '2024.05.26'
_pkg_version = '2024.05.27'
2 changes: 1 addition & 1 deletion lib/yt_dlp_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c53c2e40fde8f2e15c7c62f8ca1a5d9e90ddc079
111b61ddef305584d45a48e7b7c73ffcedf062a2

0 comments on commit ae7abc4

Please sign in to comment.