I was wondering if it would be possible to change so that instead of telling Sonarr to search for each individual episode in a season it should search for the entire season.
The indexer that I'm using puts the episodes of a completed season into packs and if Sonarr is searching for individual episodes it won't find anything, it will also very quickly reach the API request limit if searching for a show with many seasons. And even if the season hasn't ended yet Sonarr should still fallback to individual episodes, at least that's how it behaves if a season search is triggered via the web interface. Because of this I'm forced to use the older Meteor version which tells Sonarr to search for the entire season.
that'd be awesome! my tracker has the same
If you select a season instead of an episode does it not do this?
It acts like this when selecting a single season or all seasons, haven't tried single episodes. I also tried an older version where selecting single episodes wasn't implemented yet and got the same results.
Ok not a problem!
I would absolutely love this.
So in TvSender.cs, it looks like you currently set monitored status on episodes individually, but then also trigger a per-episode search. This is what's killing the API rate limit on some upstream sites.
I think the better way to handle it is to set monitored status when you add a new series, but then simply trigger SeriesSearch in Sonarr (it wants the seriesId to search for). This will correctly trigger season pack searches before Sonarr will start digging into individual episode searches...
@mwegner I think you are right, the episode search should only be appropriate for requesting individual episodes.
All coded up, anyone want to test this for me?
https://ci.appveyor.com/project/tidusjar/requestplex/build/1.9.802/artifacts
Anyone?
Just tried it out. Tried requesting all seasons and a single season but Sonarr still searches for each individual episode which seem really strange since it should call for the other API call according to the code and I've also tried the same API call manually, just to be safe.
Oh really? That is very strange. I'll take another look when I get home
Just tried it with an existing show and that works fine except I requested only one season and it grabbed all of them..
How did you request that single season? Which option as it seems to be working for me?
All right, did some additional testing. It seems like whenever you add a new show it will always search for individual episodes, limited to the scope you use i.e. only the season you requested.
However, if you request a season for a show that's already added to Sonarr it works fine, except that Sonarr will search for all seasons but only grab those that are monitored. The show I had already was added via Sonarr by me and it defaults to having all episodes monitored, which is why Sonarr grabbed all episodes.
As a workaround to this you could request a single episode which you know Sonarr will not find so that the show is added to Sonarr, and then request each season you want..
Yeah think I worked it out. Tested with existing and new shows and it now should work.
Can you try this to confirm? https://ci.appveyor.com/project/tidusjar/requestplex/build/1.9.803/artifacts
Works great, awesome job! Thank you very much.
Sorry to bother you again, but people has been using it the past week. It seems whenever there's a request for a new show, the last season will show up as unaired in Sonarr, no matter if that is true or not, and thus Sonarr doesn't search for any new episodes in that season.
It behaves like this no matter if you request all seasons, just the latest season via the "Latest Season" option or if you select the last season manually via the "Select Season..." option. It seems like the season is toggled as monitored, but the episodes in that season aren't.
So no matter what option they choose e.g. Latest Season, the Latest season will be unmonitored?
I'm not following?
That's how it works currently. But like I said, the season is marked as monitored but each episode is marked as unmonitored.
Here's a screenshot to help illustrate the issue: http://i.imgur.com/KkflFXL.jpg. I just reverted the monitored state back to unmonitored manually.
So because it's not aired, it's marking the episodes and unmonitored?
On Wed, 28 Sep 2016 at 6:06 pm, Joacim Eriksson [email protected]
wrote:
That's how it works currently. But like I said, the season is marked as
monitored but each episode is marked as unmonitored.Here's a screenshot to help illustrate the issue:
https://i.imgur.com/G1S8Jm3.jpg. I just reverted the monitored state back
to unmonitored manually.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tidusjar/PlexRequests.Net/issues/515#issuecomment-250231228,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVaLKF90BKISeueqR4fEs0ByQqra1yOks5qup6BgaJpZM4JxvH4
.
Thanks,
Jamie
The episodes has aired, Sonarr simply labels the season as unaired because there are no episodes monitored currently. The main problem is that the episodes within the last season are unmonitored when requested.
Correct, I ended up having to roll this back in the last release due to issues with communicating with Sonarr.
I need to rethink and implement this.
Not sure if I should make a new issue for this or not, since it's closely related. Let me know if I should move this to it's own issue.
Basically would it be possible to have an option to disable the automatic search in Sonarr when adding a whole season or show? I don't want Sonarr searching for every episode individually like discussed earlier in this request. And personally I prefer to find season packs for older shows/seasons manually.
Something like a checkbox on the Sonarr config page (maybe enabled by default?): "Have Sonarr search for show when added." or something similar. Or maybe a drop down in the approval menu with a couple of options like "Approve" and "Approve and Search"
Can you raise that on Feathub?
Just want to +1 this original issue. It's pretty massive for anyone who uses torrents as their main source for Sonarr instead of usenet, as adding any historical TV season is pretty much guaranteed to fail. I've had to remove TV Show functionality from Ombi entirely, which is such a pity because it's a great tool and works so well for movies.
Are there any current plans to resolve this issue? As mentioned before this is a big issue for torrent users, and makes Ombi just fail to correctly download the new series. Anything we can do to help get this moved along?
This still affects me too. Whenever a large show is added, Ombi sends enough API requests to get an automatic 1-hour ban. I already had automation in place to perform a series search per-show, so on my end of things I'd be totally fine with disabling search altogether as a short-term solution.
(That automation is this idiotic PHP script on a cron job, if anyone is curious:)
<?php
chdir(__DIR__);
require __DIR__ . '/vendor/autoload.php';
use Kryptonit3\Sonarr\Sonarr;
$sonarr = new Sonarr('my_sonar_ip_here', 'my_api_key_here');
$series = $sonarr->getSeries();
$series = json_decode($series, true);
// check through each show, if we haven't performed an all-episode search do so now
foreach($series as $show)
{
$file = "searched/$show[id]";
if(file_exists($file))
continue;
file_put_contents("searched/$show[id]", time());
print "Doing search for: $show[title]\n";
// do the actual search
$sonarr->postCommand('SeriesSearch', array('seriesId' => $show['id']));
}
So yeah. I will be fixing this as well as re-doing the sonarr integration once I have released the current version
Please check out the EAP branch!
This is fixed in the lasted EAP version. pleas check it out and give some feedback 😄
Just tried it with the EAP. Seems to be working great! I requested all seasons of a show and it ran season searches for each one. Great job guys!
Hi, is there an option to do a manual search for whole seasons? For instance, If I wanted to download a specific season release from BTN, how would I go about doing so in Sonarr?
This is not the place to ask that. You can beter ask it on the sonarr side
I apologize. That's what I get for blindly Google searching what I'm
looking for. I thought I was on the Sonarr github. Sorry again!
On Apr 28, 2017 5:12 PM, "PotatoQuality" notifications@github.com wrote:
This is not the place to ask that. You can beter ask it on the sonarr side
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tidusjar/Ombi/issues/515#issuecomment-298133353, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AL32_RLqCf0vbEbqqEHfJwvd6zijs-fMks5r0oBzgaJpZM4JxvH4
.
This seems like an old issue, but mine is still searching for individual episodes when I approve a request - if it's a big series it will get me temp banned from the API
@etsan you are reporting a issue for a version that we dont support anymore
This is in the current EAP branch
version 2.x is not support anymore. We are busy with the rewrite version 3.0
Is this in the main branch now? Or still only in EAP? I don't see in the UI where to select a whole season other than the first one or the latest one. If I choose "select", It just lets me pick seasons, and then forced to pick episodes, I can't say the whole season.
How do I get this feature? I am using the stable build from releases right now. Is this still only in a development branch? Ombi is still telling Sonarr to search for each episode individually for me. .
Most helpful comment
Just want to +1 this original issue. It's pretty massive for anyone who uses torrents as their main source for Sonarr instead of usenet, as adding any historical TV season is pretty much guaranteed to fail. I've had to remove TV Show functionality from Ombi entirely, which is such a pity because it's a great tool and works so well for movies.