mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-28 01:20:57 +01:00
Document configuration
This commit is contained in:
parent
92b91c1878
commit
df4bad3245
4
Makefile
4
Makefile
@ -33,13 +33,13 @@ youtube-dl.exe: youtube_dl/*.py
|
|||||||
README.md: youtube_dl/*.py
|
README.md: youtube_dl/*.py
|
||||||
@options=$$(COLUMNS=80 python -m youtube_dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/## \1/') && \
|
@options=$$(COLUMNS=80 python -m youtube_dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/## \1/') && \
|
||||||
header=$$(sed -e '/.*# OPTIONS/,$$ d' README.md) && \
|
header=$$(sed -e '/.*# OPTIONS/,$$ d' README.md) && \
|
||||||
footer=$$(sed -e '1,/.*# FAQ/ d' README.md) && \
|
footer=$$(sed -e '1,/.*# CONFIGURATION/ d' README.md) && \
|
||||||
echo "$${header}" > README.md && \
|
echo "$${header}" > README.md && \
|
||||||
echo >> README.md && \
|
echo >> README.md && \
|
||||||
echo '# OPTIONS' >> README.md && \
|
echo '# OPTIONS' >> README.md && \
|
||||||
echo "$${options}" >> README.md&& \
|
echo "$${options}" >> README.md&& \
|
||||||
echo >> README.md && \
|
echo >> README.md && \
|
||||||
echo '# FAQ' >> README.md && \
|
echo '# CONFIGURATION' >> README.md && \
|
||||||
echo "$${footer}" >> README.md
|
echo "$${footer}" >> README.md
|
||||||
|
|
||||||
youtube-dl.1: README.md
|
youtube-dl.1: README.md
|
||||||
|
@ -102,6 +102,10 @@ which means you can modify it, redistribute it or use it however you like.
|
|||||||
-k, --keep-video keeps the video file on disk after the post-
|
-k, --keep-video keeps the video file on disk after the post-
|
||||||
processing; the video is erased by default
|
processing; the video is erased by default
|
||||||
|
|
||||||
|
# CONFIGURATION
|
||||||
|
|
||||||
|
You can configure youtube-dl by placing default arguments (such as `--extract-audio --no-mtime` to always extract the audio and not copy the mtime) into `/etc/youtube-dl.conf` and/or `~/.local/config/youtube-dl.conf`.
|
||||||
|
|
||||||
# FAQ
|
# FAQ
|
||||||
|
|
||||||
### Can you please put the -b option back?
|
### Can you please put the -b option back?
|
||||||
|
@ -131,6 +131,12 @@ redistribute it or use it however you like.
|
|||||||
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ processing;\ the\ video\ is\ erased\ by\ default
|
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ processing;\ the\ video\ is\ erased\ by\ default
|
||||||
\f[]
|
\f[]
|
||||||
.fi
|
.fi
|
||||||
|
.SH CONFIGURATION
|
||||||
|
.PP
|
||||||
|
You can configure youtube-dl by placing default arguments (such as
|
||||||
|
\f[C]--extract-audio\ --no-mtime\f[] to always extract the audio and not
|
||||||
|
copy the mtime) into \f[C]/etc/youtube-dl.conf\f[] and/or
|
||||||
|
\f[C]~/.local/config/youtube-dl.conf\f[].
|
||||||
.SH FAQ
|
.SH FAQ
|
||||||
.SS Can you please put the -b option back?
|
.SS Can you please put the -b option back?
|
||||||
.PP
|
.PP
|
||||||
|
Loading…
Reference in New Issue
Block a user