mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-06 04:32:05 +02:00
[cleanup, docs] Misc cleanup
Closes #2828, closes #2734, closes #2802, closes #2937
This commit is contained in:
parent
c89bec262c
commit
08d30158ec
20 changed files with 114 additions and 87 deletions
|
@ -1030,7 +1030,7 @@ def make_HTTPS_handler(params, **kwargs):
|
|||
def bug_reports_message(before=';'):
|
||||
msg = ('please report this issue on https://github.com/yt-dlp/yt-dlp , '
|
||||
'filling out the "Broken site" issue template properly. '
|
||||
'Confirm you are on the latest version using -U')
|
||||
'Confirm you are on the latest version using yt-dlp -U')
|
||||
|
||||
before = before.rstrip()
|
||||
if not before or before.endswith(('.', '!', '?')):
|
||||
|
@ -5481,5 +5481,5 @@ has_websockets = bool(compat_websockets)
|
|||
|
||||
|
||||
def merge_headers(*dicts):
|
||||
"""Merge dicts of network headers case insensitively, prioritizing the latter ones"""
|
||||
"""Merge dicts of http headers case insensitively, prioritizing the latter ones"""
|
||||
return {k.capitalize(): v for k, v in itertools.chain.from_iterable(map(dict.items, dicts))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue