XDM icon indicating copy to clipboard operation
XDM copied to clipboard

NZBs.org not supported?

Open DejaVu opened this issue 11 years ago • 15 comments

added the URL, added the API. But cannot retrieve the categories.

Known issue?

DejaVu avatar Dec 27 '13 17:12 DejaVu

i dont know if NZBs.org is a newznab server and if the version is capable of json output from what i can tell without an account on NZBs is that i have no idea :/

lad1337 avatar Dec 31 '13 04:12 lad1337

Give us an invite an we can try to make a new plugin.

avdstelt avatar Dec 31 '13 08:12 avdstelt

They aren't giving out any invites to my knowledge. I thought they run Newznab, but can't be sure.

SpiderDice avatar Jan 22 '14 06:01 SpiderDice

nzbs.org is working (it is a newznab server) - retrieving the categories however is not. What really weird is, is the traceback: Traceback (most recent call last): File "C:\Program Files (x86)\XDM\xdm\web\ajax.py", line 73, in pluginCall status, data, msg = p_function(fn_args) File "C:\Program Files (x86)\XDM\plugins\Indexer\Newznab-de_lad1337_newznab-0 7\Newznab.py", line 139, in _gatherCategories r = requests.get(self._baseUrlApi(self.c.host, self.c.port), params=payload, verify=verify_ssl_certificate) File "C:\Program Files (x86)\XDM\site-packages\requests\api.py", line 55, in g et return request('get', url, *_kwargs) File "C:\Program Files (x86)\XDM\site-packages\requests\api.py", line 44, in r equest return session.request(method=method, url=url, *_kwargs) File "C:\Program Files (x86)\XDM\site-packages\requests\sessions.py", line 279 , in request resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=c ert, proxies=proxies) File "C:\Program Files (x86)\XDM\site-packages\requests\sessions.py", line 373 , in send r = adapter.send(request, *_kwargs) File "C:\Program Files (x86)\XDM\site-packages\requests\adapters.py", line 152 , in send conn = self.get_connection(request.url, proxies) File "C:\Program Files (x86)\XDM\site-packages\requests\adapters.py", line 122 , in get_connection conn = self.poolmanager.connection_from_url(url) File "C:\Program Files (x86)\XDM\site-packages\requests\packages\urllib3\poolm anager.py", line 113, in connection_from_url u = parse_url(url) File "C:\Program Files (x86)\XDM\site-packages\requests\packages\urllib3\util. py", line 154, in parse_url raise LocationParseError("Failed to parse: %s" % url) LocationParseError: Failed to parse: Failed to parse: nzbs2go.com:None

"nzbs2go.com" is nowhere to be found - so where does this come from?

henryford avatar Jan 22 '14 08:01 henryford

I don't known how the nzb plugin works but It's seems that is the port which isn't set to a valid value ( None ) : "nzbs2go.com:None". Le 22 janv. 2014 09:05, "henryford" [email protected] a écrit :

nzbs.org is working (it is a newznab server) - retrieving the categories however is not. What really weird is, is the traceback: Traceback (most recent call last): File "C:\Program Files (x86)\XDM\xdm\web\ajax.py", line 73, in pluginCall status, data, msg = p_function(

fn_args) File "C:\Program Files (x86)\XDM\plugins\Indexer\Newznab-de_lad1337_newznab-0 7\Newznab.py", line 139, in gatherCategories r = requests.get(self.baseUrlApi(self.c.host, self.c.port), params=payload, verify=verify_ssl_certificate) File "C:\Program Files (x86)\XDM\site-packages\requests\api.py", line 55, in g et return request('get', url, *_kwargs) File "C:\Program Files (x86)\XDM\site-packages\requests\api.py", line 44, in r equest return session.request(method=method, url=url, *_kwargs) File "C:\Program Files (x86)\XDM\site-packages\requests\sessions.py", line 279 , in request resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=c ert, proxies=proxies) File "C:\Program Files (x86)\XDM\site-packages\requests\sessions.py", line 373 , in send r = adapter.send(request, *_kwargs) File "C:\Program Files (x86)\XDM\site-packages\requests\adapters.py", line 152 , in send conn = self.get_connection(request.url, proxies) File "C:\Program Files (x86)\XDM\site-packages\requests\adapters.py", line 122 , in get_connection conn = self.poolmanager.connection_from_url(url) File "C:\Program Files (x86)\XDM\site-packages\requests\packages\urllib3\poolm anager.py", line 113, in connection_from_url u = parse_url(url) File "C:\Program Files (x86)\XDM\site-packages\requests\packages\urllib3\util. py", line 154, in parse_url raise LocationParseError("Failed to parse: %s" % url) LocationParseError: Failed to parse: Failed to parse: nzbs2go.com:None

"nzbs2go.com" is nowhere to be found - so where does this come from?

— Reply to this email directly or view it on GitHubhttps://github.com/lad1337/XDM/issues/101#issuecomment-33000608 .

Torf avatar Jan 22 '14 08:01 Torf

yeah there is an issue in the newznab plugin ... just set the port to 80 it should fallback to 80 or remove the port part when port is None / empty

lad1337 avatar Jan 22 '14 08:01 lad1337

Ahh, so we have to set the port to 80 in order for it to work. Thanks!

SpiderDice avatar Jan 22 '14 17:01 SpiderDice

Has anyone got XDM to pull down TV, Movie, or Music from nzbs.org?

I've added a TV episode, Movie, and album that I know can be downloaded. But nothing seems to happen.

SpiderDice avatar Feb 11 '14 18:02 SpiderDice

@SpiderDice i dont have acces to nzbs.org so i cant test much and i dont know who to ask how there api is build and or which version of newznab they use

lad1337 avatar Feb 12 '14 18:02 lad1337

I have an account. I may be able to provide some information.

Let me know what you want.

SpiderDice avatar Feb 13 '14 21:02 SpiderDice

@SpiderDice

  • do they use newznab, or is there system just nwznab API compatible ?
  • do they have an api documentation ?
  • do they support json output ?
  • what is the response you get when XDM calls them ? (donno if this is logged :/ )

lad1337 avatar Feb 13 '14 22:02 lad1337

  • I see "Powered by newznab" on the bottom of the website
  • Yes, I found API documentation.
  • Yes, they support JSON output
  • Here is the log. Looks like it isn't pulling the API from the settings.
DEBUG       2014-02-13 10:09:04.359952  
Removing state "cleaning". STATES are now ['running']
DEBUG       2014-02-13 14:22:52.802929  
init paint on default root TV(de.lad1337.tv)[2] 
DEBUG       2014-02-13 14:23:08.345902  
init paint on default root TV(de.lad1337.tv)[2] 
DEBUG       2014-02-13 14:23:12.432944  
init paint children on given root Season(de.lad1337.tv)[38] Arrow s01
DEBUG       2014-02-13 14:23:19.515221  
Running searchElement with args: (Episode-196,) and kwargs: {}
INFO        2014-02-13 14:23:20.059075  
Init search of Episode(de.lad1337.tv)[196] Arrow s01e01 Pilot on Newznab (Default)
DEBUG       2014-02-13 14:23:20.742564  
Final search term set for Episode(de.lad1337.tv)[196] Arrow s01e01 Pilot is: [u'Arrow s01e01']
DEBUG       2014-02-13 14:23:21.235604  
Newsnab final search for term Arrow s01e01 url http://nzbs.org:80/api?apikey=##apikey##&maxage=1970&o=json&cat=tv&q=Arrow+s01e01&t=search
INFO        2014-02-13 14:23:21.239175  
No search results for Arrow s01e01
INFO        2014-02-13 14:23:21.300798  
We filtered all downloads out for Episode(de.lad1337.tv)[196] Arrow s01e01 Pilot
INFO        2014-02-13 14:23:25.703751  
Init search of Episode(de.lad1337.tv)[196] Arrow s01e01 Pilot on Newznab (Default)
DEBUG       2014-02-13 14:23:26.184791  
Final search term set for Episode(de.lad1337.tv)[196] Arrow s01e01 Pilot is: [u'Arrow s01e01']
DEBUG       2014-02-13 14:23:26.593565  
Newsnab final search for term Arrow s01e01 url http://nzbs.org:80/api?apikey=##apikey##&maxage=1970&o=json&cat=tv&q=Arrow+s01e01&t=search
INFO        2014-02-13 14:23:26.601567  
No search results for Arrow s01e01
INFO        2014-02-13 14:23:26.672241  
We filtered all downloads out for Episode(de.lad1337.tv)[196] Arrow s01e01 Pilot
DEBUG       2014-02-13 14:23:44.446785  
Language setting is 'en_US' resulting locale: 'en_US'

SpiderDice avatar Feb 13 '14 22:02 SpiderDice

Would you like me to post the API documentation here? It is fairly lengthy.

SpiderDice avatar Feb 13 '14 22:02 SpiderDice

rather to pastebin.com or something ... are you allowed to make it public ?

lad1337 avatar Feb 13 '14 22:02 lad1337

I can do pastebin, not a problem. I did remove all my user API and ID values, so that is what the "XXX" is in documentation.

I am not sure if I am allowed to make it public. We'll see. :) http://pastebin.com/111vGgiu (I made it an Unlisted paste)

SpiderDice avatar Feb 13 '14 22:02 SpiderDice