aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <alexta69@gmail.com>2021-11-21 16:50:18 +0200
committerGitHub <noreply@github.com>2021-11-21 16:50:18 +0200
commit224deb9792e6cce6a9bc6040b5d4d60b5499c20e (patch)
tree458f5f90c95c7eca8c530b05a330f7fcbab64632
parentMerge pull request #73 from asuyou/mp3-support (diff)
downloadmetube-224deb9792e6cce6a9bc6040b5d4d60b5499c20e.tar.gz
metube-224deb9792e6cce6a9bc6040b5d4d60b5499c20e.tar.bz2
metube-224deb9792e6cce6a9bc6040b5d4d60b5499c20e.zip
add a YTDL_OPTIONS example
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6967a10..3de21af 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,12 @@ Certain values can be set via environment variables, using the `-e` parameter on
* __AUDIO_DOWNLOAD_DIR__: path to where audio-only downloads will be saved, if you wish to separate them from the video downloads. Defaults to the value of `DOWNLOAD_DIR`.
* __URL_PREFIX__: base path for the web server (for use when hosting behind a reverse proxy). Defaults to `/`.
* __OUTPUT_TEMPLATE__: the template for the filenames of the downloaded videos, formatted according to [this spec](https://github.com/yt-dlp/yt-dlp/blob/master/README.md#output-template). Defaults to `%(title)s.%(ext)s`.
-* __YTDL_OPTIONS__: Additional options to pass to youtube-dl, in JSON format. [See available options here](https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L176). They roughly correspond to command-line options, though some do not have exact equivalents here, for example `--recode-video` has to be specified via `postprocessors`. Also note that dashes are replaced with underscores. Example value: `{"sleep_interval":10}`.
+* __YTDL_OPTIONS__: Additional options to pass to youtube-dl, in JSON format. [See available options here](https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L176). They roughly correspond to command-line options, though some do not have exact equivalents here, for example `--recode-video` has to be specified via `postprocessors`. Also note that dashes are replaced with underscores.
+
+The following example value for `YTDL_OPTIONS` embeds English subtitles and chapter markers (for videos that have them), and also changes the permissions on the downloaded video:
+```
+{"writesubtitles": true, "subtitleslangs": ["en", "-live_chat"], "postprocessors": [{"key": "Exec", "exec_cmd": "chmod 0664", "when": "after_move"}, {"key": "FFmpegEmbedSubtitle", "already_have_subtitle": false}, {"key": "FFmpegMetadata", "add_chapters": true}]}
+```
## Using browser cookies
In case you need to use your browser's cookies with MeTube, for example to download restricted or private videos:
bgstack15