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

Issue when adding a new series via Api #1507

Closed
tidusjar opened this issue Oct 13, 2016 · 6 comments
Closed

Issue when adding a new series via Api #1507

tidusjar opened this issue Oct 13, 2016 · 6 comments

Comments

@tidusjar
Copy link

Hello,

I am trying to add a new series using the following endpoint:

/series with a POST request, the JSON body is below

{
    " addOptions " : {
        " ignoreEpisodesWithFiles " : true,
        " ignoreEpisodesWithoutFiles " : true,
        " searchForMissingEpisodes " : false
    },
    " title " : " Narcos ",
    " seasons " : [],
    " rootFolderPath " : " D :  \ Media \ TV Shows ",
    " qualityProfileId " : 1,
    " seasonFolder " : true,
    " monitored " : true,
    " tvdbId " : 282670,
    " tvRageId " : 0,
    " cleanTitle " : null,
    " imdbId " : null,
    " titleSlug " : " Narcos ",
    " id " : 0,
    " images " : []
}

Now I cannot understand why it is setting the latest season in the series as monitored and non of the episodes:
image

I would have expected no seasons to be monitored as I set both ignore option in the addOptions to true

Any idea what might be going on here?

Related Plex Request issue Ombi-app/Ombi#587

@tidusjar
Copy link
Author

Any idea guys?

@markus101
Copy link
Member

The latest season is always left monitored, this is because more episodes may be added to the season and newly added episodes take inherit the monitored status of the season.

I'm a little unclear what the issue is here, telling Sonarr to ignore episodes with files and ignore episodes without files tells Sonarr to unmonitor any aired episode with or without a file, but the linked issue seems to be about it only monitoring future episodes (which is what you're achieving here).

@tidusjar
Copy link
Author

Basically I have changed the way we search for episodes and seasons.
Before we were calling the command and searching for all episodes (By passing an array of episode Id's).

I changed it to search for the actual season itself.

So when a series does not exist on Sonarr, I want to add the series as unmonitoed so nothing downloads/searches and then set the appropriate seasons as monitored and then call the command endpoint and search for that series (So it should only search for the seasons that I selected as monitored).

This doesn't seem to work, the main problem seems that I cannot add a series to Sonarr and set all seasons as unmonitored.

If you have an idea of a better way to do this, that would be excellent.

@markus101
Copy link
Member

This doesn't seem to work, the main problem seems that I cannot add a series to Sonarr and set all seasons as unmonitored.

You can actually set all the seasons to unmonitored in the request to add the series and Sonarr will respect that:

"seasons": [
  {
    "seasonNumber": 0,
    "monitored": false
  },
  {
    "seasonNumber": 1,
    "monitored": false
  },
  {
    "seasonNumber": 2,
    "monitored": false
  },
  {
    "seasonNumber": 3,
    "monitored": false
  }
],

@markus101
Copy link
Member

@tidusjar is there anything you need from us? It looks like the issue you linked is closed with a fix in the latest release.

@tidusjar
Copy link
Author

tidusjar commented Nov 1, 2016

Yeah thank you for your help.
On Tue, 1 Nov 2016 at 5:02 am, Mark McDowall notifications@github.com
wrote:

@tidusjar https://github.com/tidusjar is there anything you need from
us? It looks like the issue you linked is closed with a fix in the latest
release.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#1507 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGVaLLAoS2tt9ksxz_IU5eO1AS6r2s6eks5q5sfIgaJpZM4KWU_y
.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2021
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

2 participants