Kodi Community Forum
[RELEASE] Watchlist script (was 'Adding Plex's 'On Deck' feature to XBMC') - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: [RELEASE] Watchlist script (was 'Adding Plex's 'On Deck' feature to XBMC') (/showthread.php?tid=113702)



- snipah - 2011-11-16

ronie Wrote:@ snipah: could you please post a full Debug Log, by following these steps ?
please re-include the log line i've pasted a few posts back.

- enable debug logging
- restart xbmc
- make sure the script runs correctly
- play a movie
- make sure the script crashes
- post the full Debug Log
(it will be big, split in multiple parts if needed)

if you could, also a screenshot of Settings > Appearance > International
would be most welcome.

...will post everything tonight after work and kids are in bed.

In Settings > Appearance > International everything is set to "German". Do you still need a screenshot?


- Montellese - 2011-11-16

snipah Wrote:In Settings > Appearance > International everything is set to "German". Do you still need a screenshot?

That's probably causing the problem. In german a decimal point is represented by a comma but in JSON decimal points need to be represented by a dot. So depending on what language you have specified the returned JSON data might be invalid. I'll see into fixing it.


- Martijn - 2011-11-16

Montellese Wrote:That's probably causing the problem. In german a decimal point is represented by a comma but in JSON decimal points need to be represented by a dot. So depending on what language you have specified the returned JSON data might be invalid. I'll see into fixing it.

The problem is not only for JSON. This is also a problem for settings.xml file for addons. See my previous post.


- ronie - 2011-11-16

snipah Wrote:...will post everything tonight after work and kids are in bed.

great, cause it's still a mystery why it works correctly initially
and then fails after watching a movie.

snipah Wrote:In Settings > Appearance > International everything is set to "German". Do you still need a screenshot?

it wouldn't hurt, but if it's too much of a hassle, leave it be :-)


- snipah - 2011-11-17

...couldn't make it yesterday, due to one of the kids being sick. Hopefully will make it today. BWAH... I WILL MAKE IT TODAY! Big Grin

Thanks in advance for your effort!


- Hitcher - 2011-11-17

@ ronie: Any ETA on when this will be added to the official repo?

I'd like to add it to the requirements for XeeBo's next update.

Thanks.


- snipah - 2011-11-17

Just completed the debug-log. Due to pastebin's size-limitation I uploaded the file to my webspace (zip-file).

Click for snipahs log

Image

Hopefully everything is as requested and will help you resolving this problem!

If you need additional info...let me know!

Kind regards,
snipah


- ronie - 2011-11-18

snipah Wrote:If you need additional info...let me know!

thanx for the info. :-)

you can keep track of progress on the trac ticket.


- ronie - 2011-11-18

Hitcher Wrote:@ ronie: Any ETA on when this will be added to the official repo?

just tell me this one works fine and i'll add it:
script.watchlist-0.0.5.zip

you now have to call the script with the options you want:
Code:
RunScript(script.watchlist,movies=true&episodes=true&limit=25)



- sabotage - 2011-11-18

I'd just like to add my voice into the discussion. I have the atv2 and would like to use this contribution. I read here in the thread regarding the speed issue with SQL. Looking forward to any information to improve performance.

I understand that some users are running external database to support multiple devices. If the database is on the atv2, is there still an issue?


- Hitcher - 2011-11-18

ronie Wrote:just tell me this one works fine and i'll add it:
script.watchlist-0.0.5.zip

you now have to call the script with the options you want:
Code:
RunScript(script.watchlist,movies=true&episodes=true&limit=25)

All good here, thanks.


- butchabay - 2011-11-18

ronie Wrote:just tell me this one works fine and i'll add it:
script.watchlist-0.0.5.zip

you now have to call the script with the options you want:
Code:
RunScript(script.watchlist,movies=true&episodes=true&limit=25)

Running prefect mate!

Cheers


- pecinko - 2011-11-18

It's complaining about most played albums not being available but, other than that, runs great! :p


- odt_x - 2011-11-18

sabotage Wrote:I'd just like to add my voice into the discussion. I have the atv2 and would like to use this contribution. I read here in the thread regarding the speed issue with SQL. Looking forward to any information to improve performance.

I understand that some users are running external database to support multiple devices. If the database is on the atv2, is there still an issue?

I put a local DB on my atv2 to do a comparison. Performance increase is 15 seconds for my 1500 episodes, with the total result presented in 40 seconds.

http://pastebin.com/uQmb23L6

Edit: comparing with the debug from mysql http://pastebin.com/wbUnCBg8 I find it hard to see where the performance increase actually is coming from, for example the first request with local DB:

DEBUG: RunQuery took 344 ms for 53 items query: SELECT * FROM tvshowview

with MySQL:

RunQuery took 96 ms for 53 items query: SELECT * FROM tvshowview


- snipah - 2011-11-19

Problem resolved...script error is gone!

1. Moved my database to my NAS (mysql)
2. Did a complete reinstall of Ubuntu 11.04 minimal and XBMC
3. Installed Version 0.0.5 of the script

Don't know, which was the solution for the error...but it's gone!