nzbget / VideoSort

Video sorting script for NZBGet
GNU General Public License v3.0
105 stars 43 forks source link

Sonarr/Radarr Download Completion Handling integration #35

Closed hechz closed 6 years ago

hechz commented 6 years ago

I've noticed that completed downloads remain in the activity queue for these applications despite completion. Could a DELETE to the queue API of these applications be added as an option?

Here's an example in shell for i in $(curl -k -H 'X-Api-Key:REDACTED' -H 'authority: sonarr.dom.tld' --compressed 'https://sonarr.dom.tld/api/queue' | jq '.[].id') ;do \ echo "curl -k -X DELETE -H 'origin: https://sonarr.dom.tld' -H 'referer: https://sonarr.dom.tld/activity/queue' -H 'authority: sonarr.dom.tld' -H 'X-Api-key: REDACTED' 'https://sonarr.dom.tld/api/queue/'$i'?blacklist=false'"; \ done \ | sh -xse

hugbug commented 6 years ago

Please create a separate script and run it after VideoSort. Integrating this directly into VideoSort doesn't make sense.

Perhaps you shouldn't use VideoSort at all and let Sonarr/Radarr rename your files.

hechz commented 6 years ago

Fair enough, but Sonarr and Radarr structuring didn’t work as automatically, have to go in and kick off an organize operation.

VideoSort notifying the upstream application that called NZBGET makes sense IMHO, but fair enough

From: Andrey Prygunkov Sent: Friday 19 January 2018 22:46 To: nzbget/VideoSort Cc: hechz; Author Subject: Re: [nzbget/VideoSort] Sonarr/Radarr Download Completion Handlingintegration (#35)

Please create a separate script and run it after VideoSort. Integrating this directly into VideoSort doesn't make sense. Perhaps you shouldn't use VideoSort at all and let Sonarr/Radarr rename your files. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

hugbug commented 6 years ago

VideoSort notifying the upstream application that called NZBGET makes sense IMHO

Whether it's VideoSort notifying the other apps or another script (run after VideoSort) - the result for you is the same. NZBGet can run multiple post-processing scripts one after another.