lad1337 / XDM

XDM: eXtendable Download Manager. Plugin based media collection manager.
xdm.lad1337.de
Other
203 stars 46 forks source link

NZBs.org not supported? #101

Open DejaVu opened 10 years ago

DejaVu commented 10 years ago

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

Known issue?

lad1337 commented 10 years ago

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 :/

avdstelt commented 10 years ago

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

SpiderDice commented 10 years ago

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

henryford commented 10 years ago

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_lad1337newznab-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?

Torf commented 10 years ago

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" notifications@github.com 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_lad1337newznab-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 .

lad1337 commented 10 years ago

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

SpiderDice commented 10 years ago

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

SpiderDice commented 10 years ago

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.

lad1337 commented 10 years ago

@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

SpiderDice commented 10 years ago

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

Let me know what you want.

lad1337 commented 10 years ago

@SpiderDice

SpiderDice commented 10 years ago
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 commented 10 years ago

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

lad1337 commented 10 years ago

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

SpiderDice commented 10 years ago

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)