latest. fixes filenames
This commit is contained in:
parent
e801932783
commit
86197a5a41
12
Makefile
12
Makefile
@ -1,28 +1,32 @@
|
||||
export DOCKER_HOST := ssh://root@lstor1
|
||||
|
||||
.PHONY: default deploy build_image restart stop run logs
|
||||
|
||||
default: deploy
|
||||
|
||||
deploy:
|
||||
make build_image
|
||||
make stop
|
||||
make run
|
||||
make start
|
||||
|
||||
build_image:
|
||||
docker build -t sneak/ytdlp .
|
||||
|
||||
restart:
|
||||
make stop
|
||||
make start
|
||||
|
||||
stop:
|
||||
-docker stop sneak-ytdlp
|
||||
-docker rm -f sneak-ytdlp
|
||||
|
||||
run: stop
|
||||
start:
|
||||
docker run \
|
||||
-d \
|
||||
--name sneak-ytdlp \
|
||||
-v /srv/lstor1/warez/youtube:/output \
|
||||
--restart unless-stopped \
|
||||
sneak/ytdlp
|
||||
make logs
|
||||
|
||||
logs:
|
||||
docker logs -f sneak-ytdlp
|
||||
|
||||
|
3
run.sh
3
run.sh
@ -18,6 +18,9 @@ function main {
|
||||
curl https://ipinfo.io
|
||||
while true ; do
|
||||
doDownload
|
||||
echo "finished."
|
||||
echo "cleaning up"
|
||||
find "$DEST" -type f -iname '*.temp.*' -print -delete
|
||||
echo "sleeping $INTERVAL"
|
||||
sleep $INTERVAL
|
||||
done
|
||||
|
@ -1,5 +1,10 @@
|
||||
--download-archive "/output/archive.log"
|
||||
-i
|
||||
--restrict-filenames
|
||||
--mtime
|
||||
--write-info-json
|
||||
--write-comments
|
||||
--trim-filenames 250
|
||||
--add-metadata
|
||||
--all-subs
|
||||
--embed-subs
|
||||
|
Loading…
Reference in New Issue
Block a user