From ae7abc4a75f2ce8fcc0691226ad81c1ab8f3799b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 28 May 2024 17:01:44 +0000 Subject: [PATCH] [CI] auto update yt_dlp to upstream commit 111b61ddef305584d45a48e7b7c73ffcedf062a2 --- lib/yt_dlp/extractor/peertube.py | 8 +++++++- lib/yt_dlp/options.py | 3 ++- lib/yt_dlp/version.py | 6 +++--- lib/yt_dlp_version | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/yt_dlp/extractor/peertube.py b/lib/yt_dlp/extractor/peertube.py index b7919c073..fb4d02562 100644 --- a/lib/yt_dlp/extractor/peertube.py +++ b/lib/yt_dlp/extractor/peertube.py @@ -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 @@ -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') @@ -1555,6 +1560,7 @@ def channel_data(field, type_): 'categories': categories, 'formats': formats, 'subtitles': subtitles, + 'is_live': is_live, 'webpage_url': webpage_url, } diff --git a/lib/yt_dlp/options.py b/lib/yt_dlp/options.py index 997b575cd..9615bfbaa 100644 --- a/lib/yt_dlp/options.py +++ b/lib/yt_dlp/options.py @@ -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', diff --git a/lib/yt_dlp/version.py b/lib/yt_dlp/version.py index 415dc0eaf..a90b288c9 100644 --- a/lib/yt_dlp/version.py +++ b/lib/yt_dlp/version.py @@ -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 @@ -12,4 +12,4 @@ ORIGIN = 'yt-dlp/yt-dlp' -_pkg_version = '2024.05.26' +_pkg_version = '2024.05.27' diff --git a/lib/yt_dlp_version b/lib/yt_dlp_version index f05ba841a..a824321c8 100644 --- a/lib/yt_dlp_version +++ b/lib/yt_dlp_version @@ -1 +1 @@ -c53c2e40fde8f2e15c7c62f8ca1a5d9e90ddc079 \ No newline at end of file +111b61ddef305584d45a48e7b7c73ffcedf062a2 \ No newline at end of file