mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 05:47:24 +01:00
[core] Report different bug reports message if using stable/git
This commit is contained in:
parent
6b43a8d84b
commit
b5976e9bd4
@ -940,9 +940,13 @@ 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= , '
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user