update docs

- document '"mode": "jsonl"' for metadata pp
- remove 'username' and 'password' from 'instagram'
- add 'ytdl' example (#3180)
This commit is contained in:
Mike Fährmann
2022-11-09 22:17:08 +01:00
parent 15cd114c9c
commit 8d543b040d
3 changed files with 17 additions and 3 deletions

View File

@@ -3592,7 +3592,9 @@ Description
Selects how to process metadata. Selects how to process metadata.
* ``"json"``: write metadata using `json.dump() * ``"json"``: write metadata using `json.dump()
<https://docs.python.org/3/library/json.html#json.dump>`_ <https://docs.python.org/3/library/json.html#json.dump>`__
* ``"jsonl"``: write metadata in `JSON Lines
<https://jsonlines.org/>`__ format
* ``"tags"``: write ``tags`` separated by newlines * ``"tags"``: write ``tags`` separated by newlines
* ``"custom"``: write the result of applying `metadata.content-format`_ * ``"custom"``: write the result of applying `metadata.content-format`_
to a file's metadata dictionary to a file's metadata dictionary

View File

@@ -210,6 +210,19 @@
"text-tweets": true "text-tweets": true
}, },
"ytdl":
{
"#": "enable 'ytdl' extractor",
"#": "i.e. invoke ytdl on all otherwise unsupported input URLs",
"enabled": true,
"#": "use yt-dlp instead of youtube-dl",
"module": "yt_dlp",
"#": "load ytdl options from config file",
"config-file": "~/yt-dlp.conf"
},
"mastodon": "mastodon":
{ {
"#": "add 'tabletop.social' as recognized mastodon instance", "#": "add 'tabletop.social' as recognized mastodon instance",

View File

@@ -159,9 +159,8 @@
}, },
"instagram": "instagram":
{ {
"username": null,
"password": null,
"api": "auto", "api": "auto",
"cookies": null,
"include": "posts", "include": "posts",
"sleep-request": [6.0, 12.0], "sleep-request": [6.0, 12.0],
"videos": true "videos": true