Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarr and Radarr both say 0 wanted #43

Closed
lukeeexd opened this issue Aug 29, 2022 · 32 comments
Closed

Sonarr and Radarr both say 0 wanted #43

lukeeexd opened this issue Aug 29, 2022 · 32 comments

Comments

@lukeeexd
Copy link

image
There's 25 wanted for Radarr and less for Sonarr but both show 0

@benphelps
Copy link
Member

Alright, I'll take a look. What versions of Sonarr and Radarr are you running, and is there anything special or otherwise non-standard with your installs?

@lukeeexd
Copy link
Author

Alright, I'll take a look. What versions of Sonarr and Radarr are you running, and is there anything special or otherwise non-standard with your installs?

Radarr: 4.1.0.6175
Sonarr: 3.0.9.1555

Nothing unusual about the install, just bare metal debian

@benphelps
Copy link
Member

Radarr uses the isAvailable attribute for each movie as reported by the API to determine the wanted count. So if no movies are marked as being isAvailable = false, the count would be 0.

Sonarr uses the api/v3/wanted/missing API endpoint for it's wanted count, so that value comes directly from Sonarr.

I'm not sure what could be the issue, other than some custom availability rules or other such thing. I'm running nearly the same versions of both as you are.

@lukeeexd
Copy link
Author

lukeeexd commented Sep 3, 2022

If I go to api/v3/wanted/missing on sonarr it says

{
  "error": "Unauthorized"
}

@lukeeexd
Copy link
Author

lukeeexd commented Sep 3, 2022

It says I have 178 movies but I actually have 150 and 28 wanted so it seems to be combining wanted into total movies

@benphelps
Copy link
Member

Fixed movies count in e72efe7.

If you can go to /api/v3/wanted/missing?apikey=apikeyhere and show me the output, that would help.

@lukeeexd
Copy link
Author

lukeeexd commented Sep 3, 2022

{
  "page": 1,
  "pageSize": 10,
  "sortKey": "airDateUtc",
  "sortDirection": "descending",
  "totalRecords": 0,
  "records": []
}

I actually think Sonarr has none missing as all the shows are current ones so the episodes aren't released

@lukeeexd
Copy link
Author

lukeeexd commented Sep 4, 2022

So it seems it's including wanted movies in "movies" count and not wanted in wanted. I have 172 total which includes wanted but it should show 26 for wanted and 146 under "movies"

@benphelps
Copy link
Member

The check is simply done on the isAvailable flag, if isAvailable is false then I add it to a list of "wanted" movies, if it's true, I add it to a list of "have" movies. Queued count comes directly from the queue/status endpoint.

I'm not sure what could cause the differences you're seeing, but this is all of the information I get from the API for building the stats.

@neildeadman
Copy link

I am having this issue but only in Radarr. Sonarr is working correctly.

I am using Radarr v4.1.0.6175

@lukeeexd lukeeexd changed the title Sonarr and Radarr both said 0 wanted Sonarr and Radarr both say 0 wanted Sep 15, 2022
@C8opmBM
Copy link

C8opmBM commented Sep 15, 2022

Same here issue only on radarr.
Sonarr displays wanted correctly. Only radarr has issues, showing only Movies.
Wanted section is 0, which is false.

Version
4.1.0.6175

@hflatoey
Copy link

Same as C8opmBM here as well.

Version
4.1.0.6175

@JazzFisch
Copy link
Collaborator

Can you try again on the latest release? Ben and I did some work to both clean this up as well as improve performance.

@lukeeexd
Copy link
Author

Can you try again on the latest release? Ben and I did some work to both clean this up as well as improve performance.

Mine still say 0 wanted

@C8opmBM
Copy link

C8opmBM commented Sep 19, 2022

Same here. Sonarr works as it should, radarr still has 0 wanted.

Screenshot_20220919-133516~2

@C8opmBM
Copy link

C8opmBM commented Sep 19, 2022

Forgot to mention, it seems on sonarr v4 also there's a bug as well.
As you can see in the above screen, Sonarr 4k (v4) displays Wanted for all series.
So for me, only Sonarr v3.xx works properly.

@JazzFisch
Copy link
Collaborator

Just to make sure we can narrow this down, which version of which software is presenting display issues:
Radarr:

  • v3
  • v4

Sonarr:

  • v3
  • v4

@C8opmBM
Copy link

C8opmBM commented Sep 19, 2022

In my case:

Sonarr v3 works ok (3.0.9.1549)
Sonarr v4 NOT ok (4.0.0.115)

Radarr v4 NOT ok (4.1.0.6175) - I don't use radarr v3, since v4 is in the :latest tag.

@neildeadman
Copy link

neildeadman commented Sep 19, 2022 via email

@lukeeexd
Copy link
Author

I'm on

Radarr 4.1.0.6175

Sonarr 3.0.9.1555

And both say 0 wanted

@lukeeexd
Copy link
Author

When something is downloading they say x wanted
image

@C8opmBM
Copy link

C8opmBM commented Sep 19, 2022

I think it says "Queued" while downloading. Wanted is for missing.
Could be wrong though.

@lukeeexd
Copy link
Author

I think it says "Queued" while downloading. Wanted is for missing. Could be wrong though.

Well yeah, the whole point of this issue is that it doesn't show wanted. And I'm saying it shows wanted when it's downloading something which is obviously not meant to happen

@benphelps
Copy link
Member

Well, the values being shown are the values given back from Sonarr and Radarr.

The wanted count, comes from the endpoint wanted/missing.
The queued count, comes from the endpoint queue.

@lukeeexd
Copy link
Author

lukeeexd commented Oct 9, 2022

This is still happening

@lukeeexd
Copy link
Author

lukeeexd commented Oct 11, 2022 via email

@benphelps
Copy link
Member

There isn't anything that we can do about this, these are the values given directly from the Sonarr and Radarr APIs.

If you think the values are incorrect, you need to open an issue with the Sonarr and Radarr projects.

@benphelps
Copy link
Member

For Sonarr:

We use the totalRecords value reported by this API to display the missing count: https://sonarr.tv/docs/api/#/Missing/get_api_v3_wanted_missing

We use the totalRecords value reported by this API to display the queue count: https://sonarr.tv/docs/api/#/Queue/get_api_v3_queue

For Radarr:

We use the isAvailable flags reported by this API to display the wanted and missing values (when isAvailable is false, it's counted as "missing"), https://radarr.video/docs/api/#/Movie/get_api_v3_movie

We use the totalRecords value reported by this API to display the queue count: https://radarr.video/docs/api/#/Queue/get_api_v3_queue

@neildeadman
Copy link

Sonarr for me seems to work, so I am just interested in Radarr.

You are using the isAvailable flag reported by the API. I ran a query from a terminal against my Radarr install and for movies I have in my collection, that is set to true and if they are missing then the value is false as you'd expect.

I'm therefore confused. From the sounds of it, the way you are counting the missing movies would seem to work, but the value of 0 is wrong and I don't understand how it is getting 0.

@Magelo
Copy link

Magelo commented Oct 16, 2022

For radarr, @benphelps, I think you are misinterpreting the value "isAvailable: false"... It mean it's not in local Radarr library and not yet available, it simply mean it is not available at all, it's a futur movie not available period. So counting "isAvailable: false" will result in a partial Wanted/Missing totalRecords...

You should count "sizeOnDisk": 0 to determined Wanted/Missing movies in a local Radarr Library.

@Magelo
Copy link

Magelo commented Oct 17, 2022

I have mixted result. Depending on certain combination with "Min availability" and "Status", the movie will be "isAvailable: false" or "isAvailable: true"...

Adding "Hancock 2" with min availability "Announced" status will be "Missing" and "isAvailable: true".
Adding "HAncock 2" with min availability "Released" status will be "Not available" and "isAvailable: false".

For Radarr widget, Wanted should be counted with "sizeOnDisk = 0" and Have (Movies) counted with "sizeOnDisk > 0".

Queued is working properly.

Copy link
Contributor

github-actions bot commented Feb 6, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants