mrkipling / maraschino

A front-end for HTPCs
MIT License
424 stars 125 forks source link

CP module not showing #352

Open sshaikh opened 10 years ago

sshaikh commented 10 years ago

http://ip:port/xhr/couchpotato returns a blank page (with the CP livery).

Logs show this:

Mar-11 22:13:36 :: INFO     :: CouchPotato :: Fetching "wanted movies" list
Mar-11 22:13:38 :: INFO     :: CouchPotato :: Fetching "wanted movies" list (DONE)
Mar-11 22:13:49 :: INFO     :: CouchPotato :: Fetching "wanted movies" list

Adding

logger.log('CouchPotato :: Cochpotato object list%s' % couchpotato, 'DEBUG')
for x in couchpotato:
logger.log('CouchPotato :: Cochpotato object %s' % x, 'DEBUG')

results in:

Mar-11 23:53:04 :: DEBUG    :: CouchPotato :: Cochpotato object {u'files': [], u'library_id': 64, u'releases': [{u'status_id': u'3', u'quality_id': u'6'}], u'status_id': 3, u'profile_id': 0, u'library': {u'info'
Mar-11 23:53:04 :: DEBUG    :: CouchPotato :: Cochpotato object {u'files': [], u'library_id': 118, u'releases': [{u'status_id': u'3', u'quality_id': u'3'}], u'status_id': 3, u'profile_id': 0, u'library': {u'info
Mar-11 23:53:04 :: DEBUG    :: CouchPotato :: Cochpotato object {u'files': [], u'library_id': 430, u'releases': [{u'status_id': u'2', u'quality_id': u'3'}, {u'status_id': u'3', u'quality_id': u'3'}], u'status_id
gugahoi commented 10 years ago

Thats definitely a bug thanks for reporting. Could you tell me what those 3 movies are?

sshaikh commented 10 years ago

I can't I'm afraid - that was actually a small section of the log - there are as many lines in there as I expect there to have been films in my library, ie all of them.

gugahoi commented 10 years ago

Thats a shame, I think there might be a character in the return response that is probably breaking things.

Hellowlol commented 10 years ago

In your browser go to couchpotatourl/api/yourapikey1234/media.list And paste the response.

Den 16. mars 2014 kl. 04:30 skrev Gustavo Hoirisch notifications@github.com:

Thats a shame, I think there might be a character in the return response that is probably breaking things.

— Reply to this email directly or view it on GitHub.

Hellowlol commented 10 years ago

Your can try to replace line 70 in couchpotato.py with data = json.JSONDecoder('UTF-8').decode(data) aswell

Sendt fra min iPhone

Den 14. mars 2014 kl. 13:28 skrev sshaikh notifications@github.com:

I can't I'm afraid - that was actually a small section of the log - there are as many lines in there as I expect there to have been films in my library, ie all of them.

— Reply to this email directly or view it on GitHub.

sshaikh commented 10 years ago

The response is huge but it's there and seems pretty reasonable. On the other hand the UTF-8 fix worked a treat and I can now see the widget. Will this go into the git?

Hellowlol commented 10 years ago

I dont know, they will prop fix it.Just dont hold your breath ;) Your good until next update atleast.

sshaikh commented 10 years ago

Actaully I spoke too soon - the widget is still behaving a little weird (history doesn't work neither does "all").

I'm guessing still some codepage issue?

Hellowlol commented 10 years ago

Ok, paste the content of the link on pastebin. Nvm that the content if huge ;)

Den 17. mars 2014 kl. 00:30 skrev sshaikh notifications@github.com:

Actaully I spoke too soon - the widget is still behaving a little weird (history doesn't work neither does "all").

I'm guessing still some codepage issue?

— Reply to this email directly or view it on GitHub.

imro2 commented 9 years ago

"all" and history are partially problems on CP side. I submitted tickets there (RuudBurger/CouchPotatoServer#4337 and RuudBurger/CouchPotatoServer#4348). Maraschino side corrections are in my pull request.

Hellowlol commented 9 years ago

Thanks for getting this merged in cp, the same problem occurred randomly in htpc manager aswell

Cyper-Madsen commented 8 years ago

just to give a little more information, i can't get CP to work in the normal webinterface but on the mobile one it works fine, if you need any log's just give a heads up then i will send them to you.

keep up the nice work.. love it :)