[update] Expose more functionality to API

This commit is contained in:
pukkandan 2022-06-21 17:02:56 +05:30
parent f0500bd1e4
commit 57e0f077a6
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
4 changed files with 159 additions and 119 deletions

View file

@ -991,9 +991,10 @@ def make_HTTPS_handler(params, **kwargs):
def bug_reports_message(before=';'):
msg = ('please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , '
'filling out the appropriate issue template. '
'Confirm you are on the latest version using yt-dlp -U')
from .update import REPOSITORY
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')
before = before.rstrip()
if not before or before.endswith(('.', '!', '?')):