pillone / usntssearch

NZB Metasearch engine
pillone.github.io/usntssearch
263 stars 79 forks source link

Sickbeard issues #48

Closed babston closed 11 years ago

babston commented 11 years ago

I am getting these over and over. Tons of errors.

2013-08-16 10:23:59.932000 SEARCHQUEUE-RSS-SEARCH :: Error loading Mayhew URL: nzb.mmayhew.com/api?apikey=bc33bcfb5abd438c2a2807cee3e4a896&t=tvsearch&cat=5040%2C5030 2013-08-16 10:24:03.285000 SEARCHQUEUE-BACKLOG-154341 :: Error loading Mayhew URL: nzb.mmayhew.com/api?apikey=bc33bcfb5abd438c2a2807cee3e4a896&limit=100&t=tvsearch&season=4&rid=23993&maxage=300&cat=5030%2C5040 2013-08-16 10:24:07.149000 SEARCHQUEUE-BACKLOG-270019 :: Error loading Mayhew URL: nzb.mmayhew.com/api?apikey=bc33bcfb5abd438c2a2807cee3e4a896&limit=100&t=tvsearch&season=1&rid=35994&maxage=300&cat=5030%2C5040 2013-08-16 10:34:02.674000 SEARCHQUEUE-RSS-SEARCH :: Error loading Mayhew URL: nzb.mmayhew.com/api?apikey=bc33bcfb5abd438c2a2807cee3e4a896&t=tvsearch&cat=5040%2C5030 2013-08-16 10:44:01.070000 SEARCHQUEUE-RSS-SEARCH :: Error loading Mayhew URL: nzb.mmayhew.com/api?apikey=bc33bcfb5abd438c2a2807cee3e4a896&t=tvsearch&cat=5040%2C5030 2013-08-16 10:54:03.460000 SEARCHQUEUE-RSS-SEARCH :: Error loading Mayhew URL: nzb.mmayhew.com/api?apikey=bc33bcfb5abd438c2a2807cee3e4a896&t=tvsearch&cat=5040%2C5030

pillone commented 11 years ago

Hi,

[EDIT] I am just noticed that the address you put in SB seems to not correspond to a NZBmegasearch install. It is a newsnzab install! So nothing to do here, right?

[OLD] Can you try to run mega as: python mega2 debug It gives debug output on the console that you can paste here. It would be super precious to fix the anomaly.

furu00 commented 11 years ago

this is all i get , even with debug

~~ ~~ NZBMegasearcH ~~ ~~ ====== DEBUGMODE DEBUGMODE DEBUGMODE DEBUGMODE ====== version: -1 Bootstrapping... Hash table has been initialized: 10701 Base domain and protocol: http://192.168.0.104:6587 Loading modules from: /home/odroid/nzb/SearchModules/ Found 8 modules Importing: Newznab, ab_Findnzb, ac_NZBcc, ad_NZBclub, af_Fanzub, ah_WMBidx, ai_FTDworld, al_OMGwtf ====== DEBUGFLAG MUST BE SET TO FALSE BEFORE DEPLOYMENT ====== Running on port 6587


Sickbeard:

2013-09-04 22:29:48.442864 SEARCHQUEUE-MANUAL-SEARCH :: Error loading nzbmega URL: >>192.168.0.104:6587api?t=tvsearch&cat=5040%2C5030

2013-09-04 22:29:48.447242 SEARCHQUEUE-MANUAL-SEARCH :: Error loading nzbmega URL: >>192.168.0.104:6587api?ep=11&limit=100&t=tvsearch&season=5&rid=18164&maxage=1600&cat=5030%2C5040

pillone commented 11 years ago

wait,

if there is no output error in the console in debug mode that means that the url is really not reachable. EDIT: from the log it seems that there is a typo in the url that sickbeard calls:

192.168.0.104:6587api?

BUT it should be (notice the slash)

192.168.0.104:6587/api?

Put in sickbeard this as a provider http://192.168.0.104:6587/ (notice the slash at the end)

Never had this problem. Which is the SB ver?

Let me know

furu00 commented 11 years ago

Although the slash was there in the SB GUI, it worked to add the http:// and the slash at the end. Thx for the Help

JackDandy commented 11 years ago

@pillone regex test

re.search("(?im)^https?://.*/$", subject)

on user entered sb addresses (subject), and display a warning if regex fails. This will cut down on these common user errors becoming github issue requests by alerting to the user to enter correct data to begin with. The regex asserts that subject must begin with "http://" or "https://" and must end with "/" ... case is ignored.

pillone commented 11 years ago

@JackDandy This is not a NZBmegasearch error. If the SB url is malformed, NZBMega is never reached because the url is garbled :) Actually the SB people should fix their config GUI.

@furu00 No problem

JackDandy commented 11 years ago

Ah! Actually, yeah, I do recognise this issue now,

"Actually the SB people should fix their config GUI."

[edit] It is done ... https://github.com/midgetspy/Sick-Beard/pull/731

The push request will take a little time to be accepted, but in future you will be able to tell people to upgrade their SB installations.