latest. fixes filenames

This commit is contained in:
Jeffrey Paul 2022-11-08 18:57:25 -08:00
parent e801932783
commit 86197a5a41
3 changed files with 16 additions and 4 deletions

View File

@ -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
View File

@ -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

View File

@ -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