add youtube-dl

This commit is contained in:
2020-07-23 11:21:20 +08:00
parent 3c16eca159
commit 90a7dd019f
2 changed files with 22 additions and 0 deletions

14
youtube-dl/README.md Normal file
View File

@@ -0,0 +1,14 @@
# Run youtube-dl in docker
## Run
```bash
docker run \
-it \
--rm \
--name youtube-dl \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
--mount type=bind,src=/data/youtube/,dst=/output/ \
newnius/youtube-dl youtube-dl -o '/output/%(id)s.%(ext)s' 'https://www.youtube.com/watch?v=LXb3EKWsInQ'
```