File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -2371,15 +2371,24 @@ def set_alpn_protocols(ctx):
2371
2371
return YoutubeDLHTTPSHandler (params , context = context , ** kwargs )
2372
2372
2373
2373
2374
- def bug_reports_message ():
2374
+ def bug_reports_message (before = ';' ):
2375
2375
if ytdl_is_updateable ():
2376
2376
update_cmd = 'type youtube-dl -U to update'
2377
2377
else :
2378
- update_cmd = 'see https://yt-dl.org/update on how to update'
2379
- msg = '; please report this issue on https://yt-dl.org/bug .'
2380
- msg += ' Make sure you are using the latest version; %s.' % update_cmd
2381
- msg += ' Be sure to call youtube-dl with the --verbose flag and include its complete output.'
2382
- return msg
2378
+ update_cmd = 'see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update'
2379
+
2380
+ msg = (
2381
+ 'please report this issue on https://github.com/ytdl-org/youtube-dl/issues ,'
2382
+ ' using the appropriate issue template.'
2383
+ ' Make sure you are using the latest version; %s.'
2384
+ ' Be sure to call youtube-dl with the --verbose option and include the complete output.'
2385
+ ) % update_cmd
2386
+
2387
+ before = (before or '' ).rstrip ()
2388
+ if not before or before .endswith (('.' , '!' , '?' )):
2389
+ msg = msg [0 ].title () + msg [1 :]
2390
+
2391
+ return (before + ' ' if before else '' ) + msg
2383
2392
2384
2393
2385
2394
class YoutubeDLError (Exception ):
You can’t perform that action at this time.
0 commit comments