aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorbashonly <bashonly@bashonly.com>2023-11-12 16:04:04 -0600
committerbashonly <bashonly@bashonly.com>2023-11-12 18:30:14 -0600
commit0b6ad22e6a432006a75df968f0283e6c6b3cfae6 (patch)
treec5139d6a0dd3b420f29b72b68372c21c95ac0717 /yt_dlp/YoutubeDL.py
parent5438593a35b7b042fc48fe29cad0b9039f07c9bb (diff)
[update] Overhaul self-updater
Authored by: bashonly, Grub4K Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 1fb3e4ad2..740826b45 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -60,7 +60,7 @@ from .postprocessor import (
get_postprocessor,
)
from .postprocessor.ffmpeg import resolve_mapping as resolve_recode_mapping
-from .update import REPOSITORY, _get_system_deprecation, current_git_head, detect_variant
+from .update import REPOSITORY, _get_system_deprecation, _make_label, current_git_head, detect_variant
from .utils import (
DEFAULT_OUTTMPL,
IDENTITY,
@@ -3928,8 +3928,7 @@ class YoutubeDL:
klass = type(self)
write_debug(join_nonempty(
f'{REPOSITORY.rpartition("/")[2]} version',
- f'{CHANNEL.rpartition("@")[2]}@{__version__}',
- not ORIGIN.startswith('yt-dlp/') and f'from {ORIGIN}',
+ _make_label(ORIGIN, CHANNEL.partition('@')[2] or __version__, __version__),
f'[{RELEASE_GIT_HEAD[:9]}]' if RELEASE_GIT_HEAD else '',
'' if source == 'unknown' else f'({source})',
'' if _IN_CLI else 'API' if klass == YoutubeDL else f'API:{self.__module__}.{klass.__qualname__}',