Comments (5)
I was more thinking that we could call the refresh download endpoints from Radarr/Sonarr just before getting the values from Radarr/Sonarrr, so the timings are always more accurate. This could be enabled as an option since it will make addition requests to Radarr/Sonarr.
The Radarr/Sonarr request to update download times is POST /api/v3/command
with this payload: { "name": "RefreshMonitoredDownloads" }
from jellyseerr.
What this feature hopes to resolve is put a manual sync button.
I understand.
Would it make more sense to create a new button or incorporate it into the functionality of Download Sync
?
The workflow would be: Call the refresh download endpoints from Radarr/Sonarr -> Sync the the downloads on Jellyseerr.
This aligns with your above plan :
I was more thinking that we could call the refresh download endpoints from Radarr/Sonarr just before getting the values from Radarr/Sonarrr, so the timings are always more accurate
from jellyseerr.
Pardon if this question sound dumb, but what does the 'Download Sync'
job perform and would this may be a good function to add on this current feature to?
from jellyseerr.
Pardon if this question sound dumb, but what does the
'Download Sync'
job perform and would this may be a good function to add on this current feature to?
That's precisely the job that syncs with the sonarr/radarr. Which runs every 2 minutes. The reason why the estimated time is not accurate most of the time is because it's not accurate on sonarr/radarr (which also Syncs with the clients every 2 minutes). What this feature hopes to resolve is put a manual sync button.
from jellyseerr.
The Radarr/Sonarr request to update download times is
POST /api/v3/command
with this payload:{ "name": "RefreshMonitoredDownloads" }
I went through it myself. I don't really know C# all too well, but I can sort of understand the process flow of how it works on Radarr's side:
CommandController
received the RefreshMonitoredDownloads
command and is picked up by the DownloadProcessingService
which executes the ProcessMonitoredDownloadsCommand
, which is tasked in scanning the current state of all monitored downloads. I believe this is done for all downloads so we would have to get radarr/sonarr to refresh the status for all downloads, not only an individual series/movie ID.
Here is an example POST call I got when I analysed the network traffic when clicking refresh under Queue:
{
"name": "RefreshMonitoredDownloads",
"commandName": "Refresh Monitored Downloads",
"body": {
"sendUpdatesToClient": true,
"updateScheduledTask": true,
"requiresDiskAccess": false,
"isExclusive": false,
"isTypeExclusive": false,
"isLongRunning": false,
"name": "RefreshMonitoredDownloads",
"trigger": "manual",
"suppressMessages": true
},
"priority": "normal",
"status": "queued",
"result": "unknown",
"queued": "2024-07-22T02:50:27Z",
"trigger": "manual",
"sendUpdatesToClient": true,
"updateScheduledTask": true,
"id": 49426
}
I haven't figured out exactly how we import and call API endpoints for Radarr/Sonarr but I did find where I should be looking for Download Sync
in downloadtracker.ts
Fortunately, my ability to understand Typescript is better than C#, and I'll need to look a bit further on where we would be making our API call.
from jellyseerr.
Related Issues (20)
- Error 500 when opening page for Schitt's Creek HOT 8
- Inaccurate estimated download times HOT 5
- Issue with Docker extra_hosts Configuration Not Working as Expected HOT 3
- Allow resetting requests when radarr/sonarr switch to unmonitored HOT 1
- Cannot filter on Streaming Services anymore HOT 2
- Language Notifications? HOT 1
- Request to use alternative for TMDB. HOT 1
- Allow more requests for media if any Sonarr/Radarr instance doesn't have the media HOT 4
- Cannot Access Jellyseerr Docker when routed through VPN container HOT 2
- Application Exception HOT 11
- e-mail notifications not working ("Greeting never received") HOT 1
- [Feature Request] Split "Discover Region" and "Currently Streaming on"
- [Feature Request] Notification on movie/show status change HOT 5
- Show available episodes of a TV Show, not only Seasons HOT 1
- Jellyseeerr doesn't seem to connect HOT 2
- [ Feature Request ] - PWA - Progressive webapp HOT 4
- [ Feature Request ]Negate Filter "Currently Streaming on"
- Forgot Password URL always adds "/" HOT 1
- Probably missind headers for delete from arr*
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jellyseerr.