![]() /path/to/logs/youtube-dl.err: the path to the error log, if desired./path/to/nf: the path to your nf file, where settings such as output file naming, quality, etc can be determined./path/to/youtube/subscriptions: the path where videos will be saved./path/to/netrc: the path to the file containing your youtube credentials, see above.If not, the -cpus argument can be completely omitted. This may be required to prevent impacting system performance if transcoding takes place. ![]() CPUS: the number of CPUs to constrain the docker container to.UID: a user ID to run as (if in a normal user's crontab, use $(id -u).GID: a group ID to run as (if in a normal user's crontab, use $(id -g). ![]() limit-rate 5000 2> /path/to/logs/youtube-dl.err > /path/to/logs/youtube-dl.log cookies /workdir/.youtube-dl-cookiejar \ download-archive /workdir/.youtube-dl-archive \ Ghcr.io/mikenye/docker-youtube-dl:latest \ v /path/to/youtube/subscriptions:/workdir:rw v /path/to/netrc:/home/dockeruser/.netrc:ro In order to perform a scheduled download of youtube subscriptions, it is recommended to use the following command to be executed via cron on a regular basis (eg: daily). Scheduled download of youtube subscriptions No port mappings are required for this container. Set to any value and youtube-dl -U will be run on container start Set's the umask for files created by youtube-dl The User ID that the youtube-dl process will run as The Group ID that the youtube-dl process will run as To customize some properties of the container, the following environment variables can be passed via the -e parameter (one for each variable). Thus, unless you override the output directory with the -output argument on the command line or via a configuration file, videos will end up in this directory. The youtube-dl process is executed with a working directory of /workdir. There are no data volumes explicity set in the Dockerfile, however: Container Path You can place any other configuration files within /config, and then specify them on the command line, eg: -batch-file /config/nf. The youtube-dl process automatically uses this path for caching. If this directory exists at container startup, it is symlinked to /home/dockeruser/.cache/youtube-dl at container startup. netrc file (if -netrc is specified on the command line or via a configuration file). The youtube-dl process will look in this location for a. If this file exists at container startup, it is symlinked to /home/dockeruser/.netrc at container startup. The youtube-dl process will look in this location for a configuration file by default. If this file exists at container startup, it is symlinked to /etc/nf at container startup. Ghcr.io/mikenye/docker-youtube-dl:latest Configuration Files Container Path v /path/to/netrc_file:/home/dockeruser/.netrc:ro v /path/to/downloaded/videos:/workdir:rw \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |