Skip to content

Commit

Permalink
Revert and fix utils.bug_reports_message() (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Apr 5, 2024
1 parent 18d4b34 commit 9ae12dc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions youtube_dl/utils.py
Expand Up @@ -2375,8 +2375,20 @@ def bug_reports_message(before=';'):
if ytdl_is_updateable():
update_cmd = 'type youtube-dl -U to update'
else:
update_cmd = 'see https://yt-dl.org/update on how to update'
return '; please report this issue on https://yt-dl.org/bug .'
update_cmd = 'see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update'

msg = (
' please report this issue on https://github.com/ytdl-org/youtube-dl/issues ,'
' using the appropriate issue template.'
' Make sure you are using the latest version; %s.'
' Be sure to call youtube-dl with the --verbose option and include the complete output.'
) % update_cmd

before = (before or '').rstrip()
if not before or before.endswith(('.', '!', '?')):
msg = msg[0].title() + msg[1:]

return (before + ' ' if before else '') + msg


class YoutubeDLError(Exception):
Expand Down

0 comments on commit 9ae12dc

Please sign in to comment.