Page 1 of 1

Sonarr.TV > Sickbeard!

PostPosted: Fri Mar 06, 2015 1:13 pm
by Eurisko
Ok, the Sickbeard integration is amazing. I am loving the hell out of this.

So, have you looked at Sonarr.tv? It's basically a rebrand of NZBDrone. I have a friend that showed me his deployment, and wow, I was impressed. I'll stay with Sickbeard only because of your integration, but if you ever added support for Sonarr.tv, I'm dropping Sickbeard in a hot minute.

Re: Sonarr.TV > Sickbeard!

PostPosted: Fri Mar 06, 2015 1:30 pm
by Quade
I'll check it out.

Edit:
Full integration with SABNzbd


Suggests it already works with Newsbin. Newsbin uses a Sab compatible API. Might need some tweeking. You might want to try it.

Re: Sonarr.TV > Sickbeard!

PostPosted: Thu Mar 12, 2015 7:24 pm
by kstan12
Hello. Been using Sickbeard integration since a few betas ago. Thought I'd now try Sonarr. Can't seem to get it to connect to Newsbin & I'm not sure why? It is communicating with the client but the connection just fails. I removed my API key and tried user/pass for testing.

[18:24:06] DEBUG SbServer: Read Request GET /api?mode=version&ma_username=user&ma_password=password&output=json HTTP/1.1
[18:24:06] DEBUG GET /api?mode=version&ma_username=user&ma_password=password&output=json HTTP/1.1
[18:24:06] DEBUG Accept: application/json, application/xml, text/json, text/x-json, text/javascript, text/xml
[18:24:06] DEBUG User-Agent: Sonarr/2.0.0.2850 (RestSharp/105.0.1.0; Windows/6.1)
[18:24:06] DEBUG Host: localhost:8000
[18:24:06] DEBUG Accept-Encoding: gzip, deflate
[18:24:06] DEBUG SbServer: Read Request GET /api?mode=get_config&ma_username=user&ma_password=password&output=json HTTP/1.1
[18:24:06] DEBUG GET /api?mode=get_config&ma_username=user&ma_password=password&output=json HTTP/1.1
[18:24:06] ERROR SickBeard Integration: Error Reported

Re: Sonarr.TV > Sickbeard!

PostPosted: Thu Mar 12, 2015 7:43 pm
by Quade
I'll have to try it then. Looks like Sonar is looking for some mode I haven't implemented yet. It's not really a surprise to me.

Thanks.

Re: Sonarr.TV > Sickbeard!

PostPosted: Thu Mar 12, 2015 7:51 pm
by kstan12
It tells me this:

Unable to retrieve queue and history items from newsbin: Unexpected character encountered while parsing value: o. Path '', line 0, position 0.

And then dumps a bunch JSON:


Details
Message

Unable to retrieve queue and history items from newsbin: Unexpected character encountered while parsing value: o. Path '', line 0, position 0.


Exception

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: o. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.ReadInternal()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader)
at Newtonsoft.Json.Linq.JObject.Parse(String json)
at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.GetQueue(Int32 start, Int32 limit, SabnzbdSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 102
at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.GetQueue() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:line 54
at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.<GetItems>d__1.MoveNext() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:line 182
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads(IDownloadClient downloadClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:line 68

Re: Sonarr.TV > Sickbeard!

PostPosted: Thu Mar 12, 2015 10:06 pm
by Quade
Sounds like it's trying to retrieve the download list. I haven't implemented that. SB doesn't use it. I've been meaning to add JSON to my internal remote control interface. Might be a good time to do both.

Re: Sonarr.TV > Sickbeard!

PostPosted: Thu Mar 26, 2015 10:24 pm
by Quade
I've got them talking somewhat. At least up to the point that Sonaar is handing off NZB files. It needs a bunch more work. What I have is merely a prototype. Sonaar is tied much more deeply into the downloader than Sb is. I had to reverse engineer how they talk to each other.

Re: Sonarr.TV > Sickbeard!

PostPosted: Mon Mar 30, 2015 10:21 pm
by Quade
Newsbin is accepting and downloading NZB's from Sonaar. It's trying to monitor the download remotely so I now have to write some code to let it interface with the download list.

What it seems to do is feed off all the matching NZBs and I assume when one completes properly, it'll send a command to delete the rest.

Re: Sonarr.TV > Sickbeard!

PostPosted: Mon Apr 13, 2015 4:13 pm
by cat_man
I am using Sonarr with newsbin via Blackhole and it works fine. Using Newsbin nb660B9. I tried using this version with Sonarr setting Newsbin up as a Sabnzbd client with user name and password. Sonarr does hand off the nzb to Newsbin but doesn't change the status of the enrty to "downloading". Newsbin completes the download and that is all that happens. Sonarr does not pick up the download and put it into the right location nor change the status of the file. Is this where we are with implementation or am I doing something wrong? Have you talked to the Sonar developers, they seem as active and eager to help as you and Dexter. Thanks for your effort in moving in this direction. You mentioned you have an API like sickbeard, is there an API key?

Re: Sonarr.TV > Sickbeard!

PostPosted: Mon Apr 13, 2015 5:05 pm
by Quade
Newsbin but doesn't change the status of the enrty to "downloading".


Maybe the release notes weren't clear about this. It can receive NZB's not but doesn't respond yet to Sonaars requests for a history report. It should be in the next beta. I have to actually add a history since Newsbin doesn't track histories that way.

Re: Sonarr.TV > Sickbeard!

PostPosted: Wed Apr 15, 2015 1:43 pm
by Eurisko
Can't wait. I have Sonarr installed and waiting. Then I begin the task off moving over 74 shows. smh