HaveAGitGat / Tdarr

Tdarr - Distributed transcode automation using FFmpeg/HandBrake + Audio/Video library analytics + video health checking (Windows, macOS, Linux & Docker)
Other
3.07k stars 96 forks source link

qbittorrent trigger #1044

Open mzramna opened 4 months ago

mzramna commented 4 months ago

Please put plugin requests/bugs at: https://github.com/HaveAGitGat/Tdarr_Plugins

Describe the solution you'd like there is any way to only convert a file after qbittorrent ends the seeding process?

Describe alternatives you've considered could exist a webhook trigger to monitor if the qbittorrent already completed the file seeding and only after convert the file format and overwrite/delete the orignal file

nichols89ben commented 4 months ago

Please put plugin requests/bugs at: https://github.com/HaveAGitGat/Tdarr_Plugins

Describe the solution you'd like there is any way to only convert a file after qbittorrent ends the seeding process?

Describe alternatives you've considered could exist a webhook trigger to monitor if the qbittorrent already completed the file seeding and only after convert the file format and overwrite/delete the orignal file

I dont think there are any connections between tdarr and qbittorrent. I would look into qbit_manage and mess around with category changes and have it change categories when seeding is complete, it would move it to a directory tdarr watches and process. https://github.com/StuffAnThings/qbit_manage

HaveAGitGat commented 2 months ago

You could hold the files for a really long time in Tdarr and then add a qbitorrent trigger to run something like the following to unhold the file in Tdarr

https://github.com/qbittorrent/qBittorrent/issues/9177#issuecomment-1042760996

curl -X POST http://localhost:8266/api/v2/cruddb \
-H "Content-Type: application/json" \
-d '{
    "collection": "FileJSONDB",
    "mode": "update",
    "docID": "C:/files/VP8.mkv",
    "obj": {
        "HealthCheck": "Queued",
        "TranscodeDecisionMaker": "Queued",
        "holdUntil": 0
    }
}'