From 24197e4baaefced2782faddca4684cc12a3316b9 Mon Sep 17 00:00:00 2001 From: Z0pyrus <67390601+Z0pyrus@users.noreply.github.com> Date: Wed, 16 Nov 2022 15:09:14 +0100 Subject: [PATCH] Cheged README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 33c7c02..f1fe9b9 100644 --- a/README.md +++ b/README.md @@ -28,16 +28,16 @@ Clone the repo and run `docker build -f Dockerfile-[your cpu architecture] -t yt Or use the image from [hub.docker.com](https://hub.docker.com/r/z0pyrus/ytarchiver) (`docker pull z0pyrus/ytarchiver`) -To run the Docker Container use `docker run -it --name ytarchiver -v /home/user/ytarchiver:/app/downloads z0pyrus/ytarchiver '-o' '/app/downloads' 'options' 'youtube url' 'quality'`. Use for `/home/user/ytarchiver` your path where the videos will be saved. +To run the Docker Container use `docker run -it --name ytarchiver -v /home/user/ytarchiver:/app/downloads z0pyrus/ytarchiver '-o' '/app/downloads/%(title)s_%(id)s' 'options' 'youtube url' 'quality'`. Use for `/home/user/ytarchiver` your path where the videos will be saved. -Setting `'-o' '/app/downloads'` is mandatory. +Setting `'-o' '/app/downloads/%(title)s_%(id)s'` is mandatory. -For example `docker run -it --name ytarchiver /home/user/ytarchiver:/app/downloads z0pyrus/ytarchiver '-o' '/app/downloads' '--debug' '--monitor-channel' '-r' '180' '[youtube url]' 'best'` +For example `docker run -it --name ytarchiver /home/user/ytarchiver:/app/downloads z0pyrus/ytarchiver '-o' '/app/downloads/%(title)s_%(id)s' '--debug' '--monitor-channel' '-r' '180' '[youtube url]' 'best'` It is recommended to add `--log-opt max-size='100kb'` You can also add a cookies file. Simply add `-v /path-to-cookie-file:/app/cookies.txt` for example: -`docker run --name ytarchiver -v /home/user/yta:/app/downloads -v /home/user/yta/cookies.txt:/app/cookies.txt z0pyrus/ytarchiver:latest '--cookies' 'cookies.txt' 'https://www.youtube.com/watch?v=something' '480p'` +`docker run --name ytarchiver -v /home/user/yta:/app/downloads -v /home/user/yta/cookies.txt:/app/cookies.txt z0pyrus/ytarchiver:latest '-o' '/app/downloads/%(title)s_%(id)s' '--cookies' 'cookies.txt' 'https://www.youtube.com/watch?v=something' '480p'` # Usage