stash cron
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -6,4 +6,6 @@
|
|||||||
!*/.*env*
|
!*/.*env*
|
||||||
|
|
||||||
!qbittorrent/config/qBittorrent/*.conf
|
!qbittorrent/config/qBittorrent/*.conf
|
||||||
!qbittorrent/config/qBittorrent/*.json
|
!qbittorrent/config/qBittorrent/*.json
|
||||||
|
|
||||||
|
!stash/cron/**/*
|
||||||
15
stash/cron/15min/scan.sh
Normal file
15
stash/cron/15min/scan.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# start scan
|
||||||
|
curl -X POST -H "ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJjY2FsaWZpY2UiLCJzdWIiOiJBUElLZXkiLCJpYXQiOjE3NDE5NTY3OTN9.UWTnuuWhw0mFNQVWcXCer-NA8IyipxoGx0VieHW7XRQ" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
--data '{"operationName":"MetadataScan","variables":{"input":{"scanGenerateCovers":true,"scanGeneratePreviews":true,"scanGenerateImagePreviews":false,"scanGenerateSprites":false,"scanGeneratePhashes":false,"scanGenerateThumbnails":true,"scanGenerateClipPreviews":true}},"query":"mutation MetadataScan($input: ScanMetadataInput!) {\n metadataScan(input: $input)\n}"}' \
|
||||||
|
localhost:9999/graphql
|
||||||
|
|
||||||
|
|
||||||
|
# clean
|
||||||
|
|
||||||
|
curl -X POST -H "ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJjY2FsaWZpY2UiLCJzdWIiOiJBUElLZXkiLCJpYXQiOjE3NDE5NTY3OTN9.UWTnuuWhw0mFNQVWcXCer-NA8IyipxoGx0VieHW7XRQ" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
--data '{"operationName":"MetadataClean","variables":{"input":{"dryRun":false}},"query":"mutation MetadataClean($input: CleanMetadataInput!) {\n metadataClean(input: $input)\n}"}' \
|
||||||
|
localhost:9999/graphql
|
||||||
@@ -31,7 +31,6 @@ services:
|
|||||||
- ./config:/root/.stash
|
- ./config:/root/.stash
|
||||||
## Point this at your collection.
|
## Point this at your collection.
|
||||||
- /mnt/system:/data
|
- /mnt/system:/data
|
||||||
- /mnt/hdd_1tb/data/torrents/xxx:/data/local
|
|
||||||
## This is where your stash's metadata lives
|
## This is where your stash's metadata lives
|
||||||
- ./metadata:/metadata
|
- ./metadata:/metadata
|
||||||
## Any other cache content.
|
## Any other cache content.
|
||||||
@@ -40,3 +39,4 @@ services:
|
|||||||
- ./blobs:/blobs
|
- ./blobs:/blobs
|
||||||
## Where to store generated content (screenshots,previews,transcodes,sprites)
|
## Where to store generated content (screenshots,previews,transcodes,sprites)
|
||||||
- ./generated:/generated
|
- ./generated:/generated
|
||||||
|
- ./cron/15min:/etc/periodic/15min
|
||||||
Reference in New Issue
Block a user