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