Hellowlol / HTPC-Manager

A fully responsive interface to manage all your favorite software on your Htpc.
MIT License
344 stars 48 forks source link

Radarr API v2 support #587

Closed incorpusyehtee closed 6 years ago

incorpusyehtee commented 6 years ago

Reporting Issues:

To ensure that a I has enough information to work with please include all of the following information.

Use proper markdown syntax to structure your post (i.e. code/log in code blocks).

Make sure you provide the following information below:

islanddog commented 6 years ago

After much Googling I am glad somebody posted this issue. I am utilizing Openflixr which comes pre-bundled with Sonarr, Radarr and HTPC Manager and this issue is apparent only with Radarr.

incorpusyehtee commented 6 years ago

I will probably do a PR to fix Radarr API v2 support in this project, I have been learning Python/CherryPy/this project for the last few days so that I can patch it and some other minor things.

islanddog commented 6 years ago

Awesome. I have my entire Media Manager working with OpenFlixr with the single exception of Radarr lol. You will be my hero.

incorpusyehtee commented 6 years ago

Hi, sorry I forgot about this thread.

The issue with "undefined (undefined)" can be fixed with the following. In /modules/radarr.py change this:

@cherrypy.expose()
@require()
@cherrypy.tools.json_out()
def Lookup(self, q):
    return self.fetch('Movies/lookup?term=%s' % urllib.quote(q))

to:

@cherrypy.expose()
@require()
@cherrypy.tools.json_out()
def Lookup(self, q):
    return self.fetch('movie/lookup?term=%s' % urllib.quote(q))

And the two functions below it are "addMovie" and "test", change both the self.fetch('Movies to self.fetch('movie

And close and re-start the HTPC-Manager script. I was/am working on a more complete overhaul of HTPC-Manager to reimplement the Radarr features and try to make them nice like Couchpotato's support was (though CP sucks)

jeremysherriff commented 6 years ago

Guys I see this issue was closed without an actual fix in the code (just the examples above). I can open a pull request with these changes if you want?

Hellowlol commented 6 years ago

Feel free