From b5976e9bd4ee5bff5e62f718c52930c26d238672 Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Tue, 12 Nov 2024 00:02:58 +0100 Subject: [PATCH] [core] Report different bug reports message if using stable/git --- yt_dlp/utils/_utils.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index b28bb555e..4afc62178 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -940,10 +940,14 @@ def formatSeconds(secs, delim=':', msec=False): def bug_reports_message(before=';'): - from ..update import REPOSITORY + from ..update import REPOSITORY, detect_variant + from ..version import CHANNEL - msg = (f'please report this issue on https://github.com/{REPOSITORY}/issues?q= , ' - 'filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U') + msg = ( + 'if possible, please pull the latest changes from the master branch' if detect_variant() == 'sourcex' + else 'please check if the bug is already fixed in the latest nightly version' if CHANNEL == 'stablex' + else f'please report this issue on https://github.com/{REPOSITORY}/issues?q= , ' + 'filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U') before = before.rstrip() if not before or before.endswith(('.', '!', '?')):