Compare commits

..

6 Commits

Author SHA1 Message Date
pukkandan
f2857694a3
Migrated to #8978
Revert 879a85aeb9, 7a92698dd6
2024-01-12 05:41:36 +05:30
pukkandan
25d4485d40
[docs] Migrated to #8977 2024-01-12 05:34:04 +05:30
pukkandan
7a92698dd6
[ie] No from stdlib imports (Too strict?) 2024-01-12 04:09:06 +05:30
pukkandan
879a85aeb9
[ie] Avoid potentially confusing imports 2024-01-12 04:07:29 +05:30
pukkandan
9f813e716b
[webvtt] Slightly better error 2024-01-12 03:36:24 +05:30
pukkandan
e4a327aaf9
[docs] Vista isnt supported 2024-01-12 03:36:09 +05:30
3 changed files with 4 additions and 4 deletions

View File

@ -192,7 +192,7 @@ If you [installed with pip](https://github.com/yt-dlp/yt-dlp/wiki/Installation#w
For other third-party package managers, see [the wiki](https://github.com/yt-dlp/yt-dlp/wiki/Installation#third-party-package-managers) or refer their documentation For other third-party package managers, see [the wiki](https://github.com/yt-dlp/yt-dlp/wiki/Installation#third-party-package-managers) or refer their documentation
<a id="update-channels"></a> <a id="update-channels"/>
There are currently three release channels for binaries: `stable`, `nightly` and `master`. There are currently three release channels for binaries: `stable`, `nightly` and `master`.
@ -1290,7 +1290,7 @@ To summarize, the general syntax for a field is:
Additionally, you can set different output templates for the various metadata files separately from the general output template by specifying the type of file followed by the template separated by a colon `:`. The different file types supported are `subtitle`, `thumbnail`, `description`, `annotation` (deprecated), `infojson`, `link`, `pl_thumbnail`, `pl_description`, `pl_infojson`, `chapter`, `pl_video`. E.g. `-o "%(title)s.%(ext)s" -o "thumbnail:%(title)s\%(title)s.%(ext)s"` will put the thumbnails in a folder with the same name as the video. If any of the templates is empty, that type of file will not be written. E.g. `--write-thumbnail -o "thumbnail:"` will write thumbnails only for playlists and not for video. Additionally, you can set different output templates for the various metadata files separately from the general output template by specifying the type of file followed by the template separated by a colon `:`. The different file types supported are `subtitle`, `thumbnail`, `description`, `annotation` (deprecated), `infojson`, `link`, `pl_thumbnail`, `pl_description`, `pl_infojson`, `chapter`, `pl_video`. E.g. `-o "%(title)s.%(ext)s" -o "thumbnail:%(title)s\%(title)s.%(ext)s"` will put the thumbnails in a folder with the same name as the video. If any of the templates is empty, that type of file will not be written. E.g. `--write-thumbnail -o "thumbnail:"` will write thumbnails only for playlists and not for video.
<a id="outtmpl-postprocess-note"></a> <a id="outtmpl-postprocess-note"/>
**Note**: Due to post-processing (i.e. merging etc.), the actual output filename might differ. Use `--print after_move:filepath` to get the name after all post-processing is complete. **Note**: Due to post-processing (i.e. merging etc.), the actual output filename might differ. Use `--print after_move:filepath` to get the name after all post-processing is complete.

View File

@ -445,7 +445,7 @@ class Request:
@headers.setter @headers.setter
def headers(self, new_headers: Mapping): def headers(self, new_headers: Mapping):
"""Replaces headers of the request. If not a HTTPHeaderDict, it will be converted to one.""" """Replaces headers of the request. If not a CaseInsensitiveDict, it will be converted to one."""
if isinstance(new_headers, HTTPHeaderDict): if isinstance(new_headers, HTTPHeaderDict):
self._headers = new_headers self._headers = new_headers
elif isinstance(new_headers, Mapping): elif isinstance(new_headers, Mapping):

View File

@ -78,7 +78,7 @@ class _MatchChildParser(_MatchParser):
class ParseError(Exception): class ParseError(Exception):
def __init__(self, parser): def __init__(self, parser):
super().__init__("Parse error at position %u (near %r)" % ( super().__init__("Parse error at position %u (near %r)" % (
parser._pos, parser._data[parser._pos:parser._pos + 20] parser._pos, parser._data[parser._pos:parser._pos + 100]
)) ))