Nzbdrone with nzb mega search doesn't work

Hi,

after i add my nzb mega search provider, it doesn’t work in nzbdrone.

Its give me this error:

Details
Message
An error occurred while processing feed. https://XXXX.nl:8086/api?t=tvsearch&cat=5030,5040&extended=1&apikey=f9ew6rvgoe2ep14i&limit=100&rid=31369&season=1&ep=5: Newznab error detected: Missing parameter

Exception
NzbDrone.Core.Indexers.Newznab.NewznabException: Newznab error detected: Missing parameter
bij NzbDrone.Core.Indexers.Newznab.NewznabPreProcessor.Process(String source, String url) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Core\Indexers\ewznab\ewznabPreProcessor.cs:regel 32
bij NzbDrone.Core.Indexers.Newznab.NewznabParser.PreProcess(String source, String url) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Core\Indexers\ewznab\ewznabParser.cs:regel 76
bij NzbDrone.Core.Indexers.RssParserBase.Process(String xml, String url) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Core\Indexers\RssParserBase.cs:regel 32
bij NzbDrone.Core.Indexers.Newznab.NewznabParser.Process(String xml, String url) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Core\Indexers\ewznab\ewznabParser.cs:regel 45
bij NzbDrone.Core.Indexers.FetchFeedService.Fetch(IIndexer indexer, IEnumerable`1 urls) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Core\Indexers\IndexerFetchService.cs:regel 123

If you bring that URL up in your browser, it will show you the error drone is getting, also make sure your API key is correct. If there are logs for megasearch it would be useful to check those as well.

There are a number of people using megaseqrch with drone, it doesn’t work well for season searches, but it does work.

I’m updating my Linux box about once a week. I did that today and among other packages, ND was updated to 2.0.0.1397 and now it can no longer search through NZBMegasearcH.

I’m getting the same error message as flashbang:

Message
An error occurred while processing feed. http://localhost:5000/api?t=tvsearch&cat=5030,5040&extended=1&apikey=123&limit=100&rid=35276&season=1&ep=5: Newznab error detected: Missing parameter

Exception

NzbDrone.Core.Indexers.Newznab.NewznabException: Newznab error detected: Missing parameter
at NzbDrone.Core.Indexers.Newznab.NewznabPreProcessor.Process (System.String source, System.String url) [0x00000] in <filename unknown>:0
at NzbDrone.Core.Indexers.Newznab.NewznabParser.PreProcess (System.String source, System.String url) [0x00000] in <filename unknown>:0
at NzbDrone.Core.Indexers.RssParserBase.Process (System.String xml, System.String url) [0x00000] in <filename unknown>:0
at NzbDrone.Core.Indexers.Newznab.NewznabParser.Process (System.String xml, System.String url) [0x00000] in <filename unknown>:0

Searching with NM from a remote computer works (via reverse proxy). I can’t access the NM URL from a browser as it points to localhost and the localhost is headless with no GUI whatsoever, but I can use wget (had to add backslashes in front of every ampersand to escape it):

# wget http://localhost:5000/api?t=tvsearch\\&cat=5030,5040\\&extended=1\\&apikey=123\\&limit=100\\&rid=35276\\&season=1\\&ep=5
--2014-05-17 03:45:02-- http://localhost:5000/api?t=tvsearch&cat=5030,5040&extended=1&apikey=123&limit=100&rid=35276&season=1&ep=5
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:5000... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:5000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 90 [text/html]
Saving to: 'api?t=tvsearch&cat=5030,5040&extended=1&apikey=123&limit=100&rid=35276&season=1&ep=5'

100%[======================================>] 90 --.-K/s in 0s

2014-05-17 03:45:02 (15.9 MB/s) - 'api?t=tvsearch&cat=5030,5040&extended=1&apikey=123&limit=100&rid=35276&season=1&ep=5' saved [90/90]

I need to remember to disable IPv6, other than that it seems fine. But the file I got contains only this error message in it:

<?xml version="1.0" encoding="UTF-8"?> <error code="200" description="Missing parameter"/>

I don’t know what supposed to be the missing parameter, but it looks like the series name is missing. Or is that the rid parameter?

rid is the TVRage ID of the series, so no title will be there.

Drone still makes the same URL requests as it did before, no changes have been made there for some time (months).

What do you see in your browser if you use that URL (replacing localhost as required)?

I get an empty page. That page source is

<?xml version="1.0" encoding="UTF-8"?> <error code="200" description="Missing parameter"/>

NM hasn’t been updated in ages, so it might be some library used by either program.

OK, I’ve changed the link slightly with the domain of an external Newznab site and my API key on that site and got results, so the URL ND is sending NM is correct. Looking on the log again, it seems search only fails for some series and succeed on others, quite odd. I guess it’s not a coincidence both flashbang and I noticed this on the same series,

I just started seeing the same problem after I updated to 2.0.0.1397.

Message

An error occurred while processing feed. http://usntssearch-justinpontius.rhcloud.com/api?t=tvsearch&cat=5030,5040&extended=1&apikey=**********&limit=100&rid=24504&season=4&ep=3: Newznab error detected: Missing parameter

Exception

  at NzbDrone.Core.Indexers.Newznab.NewznabPreProcessor.Process (System.String source, System.String url)[0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Indexers.Newznab.NewznabParser.PreProcess (System.String source, System.String url) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Indexers.RssParserBase.Process (System.String xml, System.String url) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Indexers.Newznab.NewznabParser.Process (System.String xml, System.String url) [0x00000] in <filename unknown>:0 ```

I think its because the API URL is wrong for TVRAGE

WAS http://www.tvrage.com/feeds/showinfo.php?sid=SHOWID

Now http://services.tvrage.com/feeds/showinfo.php?sid=SHOWID

source http://services.tvrage.com/info.php?page=main

I seem to be having the same issue with NZB MegaSearch that flashbang was having:

Message
An error occurred while processing feed. https://localhost:5000/api?t=tvsearch&cat=5030,5040&extended=1&apikey=&limit=100&rid=19907&season=1&ep=1: Newznab error detected: Missing parameter

Exception
NzbDrone.Core.Indexers.Newznab.NewznabException: Newznab error detected: Missing parameter
at NzbDrone.Core.Indexers.Newznab.NewznabPreProcessor.Process(String source, String url) in m:\BuildAgent1\work\328d72309b633a8\src\zbDrone.Core\Indexers\ewznab\ewznabPreProcessor.cs:line 32
at NzbDrone.Core.Indexers.Newznab.NewznabParser.PreProcess(String source, String url) in m:\BuildAgent1\work\328d72309b633a8\src\zbDrone.Core\Indexers\ewznab\ewznabParser.cs:line 76
at NzbDrone.Core.Indexers.RssParserBase.Process(String xml, String url) in m:\BuildAgent1\work\328d72309b633a8\src\zbDrone.Core\Indexers\RssParserBase.cs:line 32
at NzbDrone.Core.Indexers.Newznab.NewznabParser.Process(String xml, String url) in m:\BuildAgent1\work\328d72309b633a8\src\zbDrone.Core\Indexers\ewznab\ewznabParser.cs:line 45
at NzbDrone.Core.Indexers.FetchFeedService.Fetch(IIndexer indexer, IEnumerable`1 urls) in m:\BuildAgent1\work\328d72309b633a8\src\zbDrone.Core\Indexers\IndexerFetchService.cs:line 124

I’m not entirely sure when it started, but it’s been going on for the last few days for all wanted episodes of all tv shows.

@syndac did you fix the tvrage url?

@kloz said:
I think its because the API URL is wrong for TVRAGE

WAS http://www.tvrage.com/feeds/showinfo.php?sid=SHOWID

Now http://services.tvrage.com/feeds/showinfo.php?sid=SHOWID

source http://services.tvrage.com/info.php?page=main

In any event the issue lies with megasearch, drone has not changed how it integrates with newznab.

@markus101 I don’t believe that I use TVRage…unless it’s buried in a drone setting that I can’t seem to find.

And I don’t believe the issue lies with megasearch…it hasn’t had an update in months, so it’s unchanged.

I believe it not being updated in months is the elissue, tvrage changed their URL, which broke megasearch, which needs to be fixed in the megasearch code.

drone doesn’t use tvrage, it uses trakt, also drone has made no changes to how it communicates with newznab l, which is what megasearch pretends to be. Directly use your indexer in drone and you will see that it works just fine.

My mistake. This link helped a lot in fixing the MegaSearch .py modules: http://www.reddit.com/r/usenet/comments/26fsn3/nzbmegasearch_not_playing_nicely_with_sickbeard/chqmn4p

Everything works now. And thanks for the help @markus101 !

Syndac and markus, thank you for the replay.

the fix of syndac works for me. thanks!