mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Merge 6db8eca55d
into 05c8023a27
This commit is contained in:
commit
bddcd39f4b
1 changed files with 7 additions and 3 deletions
|
@ -941,10 +941,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() == 'source'
|
||||
else 'please check if the bug is already fixed in the latest nightly version' if CHANNEL == 'stable'
|
||||
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(('.', '!', '?')):
|
||||
|
|
Loading…
Reference in a new issue