[RELEASE] Watchlist script (was 'Adding Plex's 'On Deck' feature to XBMC')

  Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
ronie Offline
Team-Kodi Member
Posts: 9,219
Joined: Jan 2009
Reputation: 158
Post: #46
pecinko Wrote:+1 for season covers instead of episodes thumbnails

i'll look into it.
it will take some additional queries, so i hope it doesn't slow down the script too much.

pecinko Wrote:There's another convenient feature of "On Deck" and it's showing list of recently used add-ons. Much better usability then random items, IMHO.

[Image: addonsss.png]

Hitcher Wrote:This would require another table in the addons database though.

there's currently no way to query the addon db.
neither http-api nor json-rpc support it.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
Hitcher Offline
Skilled Skinner
Posts: 10,821
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #47
Any thoughts on adding partially watched episodes/movies or would that be better as another script altogether?

Thanks.
find
ronie Offline
Team-Kodi Member
Posts: 9,219
Joined: Jan 2009
Reputation: 158
Post: #48
Big_Noid Wrote:@ronie: I modified the script to also show episodeno the same way as in random item script.
i just can't figure out how to code so that it's the same as in recent added episodeno: s09e09 instead of s9e9. (same thing goes for random episodes too)
never realized random items used single digit values for episode and season numbers. will fix that in both scripts. :-)

i'll add a sXXeXX property to the watchlist script as well.

Big_Noid Wrote:Do you have any ideas?

basically, you need to convert the string to a float and turn it into a 2 digit number:
Code:
episode = "%.2d" % float(findepisode.group(1))

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
ronie Offline
Team-Kodi Member
Posts: 9,219
Joined: Jan 2009
Reputation: 158
Post: #49
Hitcher Wrote:Any thoughts on adding partially watched episodes/movies or would that be better as another script altogether?

Thanks.

partially watched episodes... are those not included already ?

partially watched movies, not sure if it's possible, but will look into it of course.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
Hitcher Offline
Skilled Skinner
Posts: 10,821
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #50
ronie Wrote:partially watched episodes... are those not included already ?

You know what - I haven't even tried them. Rolleyes

EDIT: Just tested and they're not included. Also they'd need an addition tag if we want to use a 'partially watched' icon.
(This post was last modified: 2011-11-05 00:09 by Hitcher.)
find
ronie Offline
Team-Kodi Member
Posts: 9,219
Joined: Jan 2009
Reputation: 158
Post: #51
Hitcher Wrote:You know what - I haven't even tried them. Rolleyes
heh, here's the deal: i'll do the coding if you guys handle the testing ;-)

Hitcher Wrote:EDIT: Just tested and they're not included.
hmm weird...thought they were...
back to the drawing board Smile

Hitcher Wrote:Also they'd need an addition tag if we want to use a 'partially watched' icon.

i need to check if that info is available through json.
it's the same reason i'm not sure if we can do partially watched movies.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
Hitcher Offline
Skilled Skinner
Posts: 10,821
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #52
Ok, no worries.
find
ronie Offline
Team-Kodi Member
Posts: 9,219
Joined: Jan 2009
Reputation: 158
Post: #53
script.watchlist-0.0.2.zip

- changed: use 2 digit season and episode numbers
- added: EpisodeNo property (sxxexx)
- fixed: partially watched episode didn't show up if it was episode 1 of season 1
- added: IsResumable property (can be used for partially watched indication)
- added: tv show thumbnail
- added: season thumbnail

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
pecinko Offline
Donor
Posts: 3,805
Joined: Dec 2008
Reputation: 51
Location: Prague / Belgrade
Post: #54
Many thanks

My skins:

Amber
Quartz

find
pecinko Offline
Donor
Posts: 3,805
Joined: Dec 2008
Reputation: 51
Location: Prague / Belgrade
Post: #55
ronie Wrote:there's currently no way to query the addon db.
neither http-api nor json-rpc support it.

OK. You'll probably think I'm a major PITA, but I'll take my chancesSmile

Until situation is improved, how about having Random Addons, spitted into categories?

-programs
-music
-video
-pictures

it is not ideal, but it's a next best thing and saves the user from a need of manually assigning them and for those with just a few, it would actually list all available.

My skins:

Amber
Quartz

find
ronie Offline
Team-Kodi Member
Posts: 9,219
Joined: Jan 2009
Reputation: 158
Post: #56
pecinko Wrote:OK. You'll probably think I'm a major PITA, but I'll take my chancesSmile

not really, though i'm a bit confused...

the randomitems script has support for addons,
so what does it have to do with this script ?

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
pecinko Offline
Donor
Posts: 3,805
Joined: Dec 2008
Reputation: 51
Location: Prague / Belgrade
Post: #57
ronie Wrote:not really, though i'm a bit confused...

the randomitems script has support for addons,
so what does it have to do with this script ?

Sorry, I guess I'm not good with explaining...

As we can not have recently used Addons in "On Deck", can we have at least randomly picked ones, based on category for starters? This can be altered later in the script when add-on DB gets support for recently used.

Makes sense?

Random add-ons picks add-ons regardless of category. I have Programs, video add-ons and music add-ons as a separate items in home menu so random items does not seam to be best solution.

My skins:

Amber
Quartz

(This post was last modified: 2011-11-05 15:40 by pecinko.)
find
Jeroen Offline
Skilled Skinner
Posts: 2,499
Joined: Feb 2008
Reputation: 23
Location: The Netherlands
Post: #58
So many great scripts coming out lately, it's hard to keep up Smile Nice work Ronie.
Any chance of returning the studio/network name?
find
BigNoid Offline
Team-Kodi Member
Posts: 3,149
Joined: Jul 2010
Reputation: 102
Location: Below sea level
Post: #59
ronie Wrote:basically, you need to convert the string to a float and turn it into a 2 digit number:
Code:
episode = "%.2d" % float(findepisode.group(1))

ronie Wrote:script.watchlist-0.0.2.zip

- changed: use 2 digit season and episode numbers
- added: EpisodeNo property (sxxexx)
- fixed: partially watched episode didn't show up if it was episode 1 of season 1
- added: IsResumable property (can be used for partially watched indication)
- added: tv show thumbnail
- added: season thumbnail

Great! (and thx for explaining)
find
ronie Offline
Team-Kodi Member
Posts: 9,219
Joined: Jan 2009
Reputation: 158
Post: #60
Jeroen Wrote:So many great scripts coming out lately, it's hard to keep up Smile Nice work Ronie.
Any chance of returning the studio/network name?

sure, no problem :-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
Thread Closed