maraschino icon indicating copy to clipboard operation
maraschino copied to clipboard

CP module not showing

Open sshaikh opened this issue 10 years ago • 12 comments

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

sshaikh avatar Mar 11 '14 23:03 sshaikh

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

gugahoi avatar Mar 14 '14 03:03 gugahoi

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.

sshaikh avatar Mar 14 '14 12:03 sshaikh

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

gugahoi avatar Mar 16 '14 03:03 gugahoi

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

Den 16. mars 2014 kl. 04:30 skrev Gustavo Hoirisch [email protected]:

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 avatar Mar 16 '14 08:03 Hellowlol

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 [email protected]:

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.

Hellowlol avatar Mar 16 '14 08:03 Hellowlol

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?

sshaikh avatar Mar 16 '14 18:03 sshaikh

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

Hellowlol avatar Mar 16 '14 19:03 Hellowlol

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?

sshaikh avatar Mar 16 '14 23:03 sshaikh

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

Den 17. mars 2014 kl. 00:30 skrev sshaikh [email protected]:

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.

Hellowlol avatar Mar 16 '14 23:03 Hellowlol

"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.

imro2 avatar Dec 19 '14 14:12 imro2

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

Hellowlol avatar Dec 19 '14 15:12 Hellowlol

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

Cyper-Madsen avatar Sep 21 '15 21:09 Cyper-Madsen