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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: [RELEASE] Watchlist script (was 'Adding Plex's 'On Deck' feature to XBMC') (/showthread.php?tid=113702)



- Jeroen - 2011-12-29 16:41

Ronie, I understand where you're coming from but I think there's a lot more to benefit from. A tighter integration would probably allow much easier skinning and flexibility. The watchlist as an add-on is s great piece of work, but having to code a list item for every possibly populated list item is kind of a PITA.

Also for instance, I think it's a shame that I cannot press "I" to bring up the information screen for movies in the watchlist, or use the context menu. Things that I, if I weren't a skinner, would expect to be possible/happen.
Correct me if I'm wrong but if something like an information screen would be implemented in the add-on this would mean it would not be able to use XBMC's dialog, but it would have to cloned/recreated as a separate dialog.

I think functionally it's very related to XBMC's core functions, I think it would be great to have it as a node in XBMC's library like recently added has been for a long time (even before the script).

I have been trying out Plex now that it's available for PC's and while I think overall XBMC is the better package the library is definitely ahead of XBMC in certain aspects. It has the watchlist functionality right up there in the library nodes which I think provides great benefits. For instance it also allows the ondeck functionality to be used on "files" content. Overall, just a better integrated and streamlined feature set.


- Martijn - 2011-12-29 17:39

For now an add-on was the best way. Maybe looking at the future it would be nice if went in as maybe a binary add-on to keep the core as clean as possible?

I also noticed (and maybe has been mentioned before) that each time when you play trailer and it finishes the script get run. That doesn't matter if you have a small library or power machine but i can image for small htpc this might be a problem.
For example if you use CE or a trailer add-on the script will be run quite a few times.


- Hitcher - 2011-12-29 21:28

I've noticed this problem on my OpenELEC machine and did think of suggesting we make it optional that it's run in the background and let the user decide how it operates but I'll let ronie decide what he wants to do.


- Hitcher - 2012-01-02 00:00

@ ronie

Something strange is happening with my music images. If I use them in a thumb control for static content some of them don't show up and upon investigating they're actually linking to last.fm.

PHP Code:
<thumb>$INFO[Window.Property(WatchList_Album.1.Thumb)]</thumb

ie http://userserve-ak.last.fm/serve/300x300/44412295.png

If however I use an icon control they appear correctly using special://masterprofile/Thumbnails/Music/...

PHP Code:
<icon>$INFO[Window.Property(WatchList_Album.1.Thumb)]</icon

Why would this happen?

Thanks.


- ronie - 2012-01-02 00:07

Hitcher Wrote:@ ronie

Something strange is happening with my music images. If I use them in a thumb control for static content some of them don't show up and upon investigating they're actually linking to last.fm.

ie http://userserve-ak.last.fm/serve/300x300/44412295.png

If however I use an icon control they appear correctly using special://masterprofile/Thumbnails/Music/...

Why would this happen?

Thanks.

no idea really, which of the two values do you get if you use it in a label control?


- Hitcher - 2012-01-02 00:26

When using <thumb> the ones that work use masterprofile and the ones that don't use last.fm.

Looking at the database strThumb is for local images and strImage is for last.fm.

Why placing $INFO[Window.Property(WatchList_Album.1.Thumb)] in <thumb> or <icon> control determines which is used is beyond me.

EDIT: When using <icon> the images all show up but they're still using masterprofile or last.fm and I've figured out that the ones linked to last.fm don't load instantly unlike the others.

XBMC must use strImage for the thumb control and strThumb for the icon control (with strThumb used as a fallback).


- ronie - 2012-01-02 01:54

Hitcher Wrote:When using <thumb> the ones that work use masterprofile and the ones that don't use last.fm.

Looking at the database strThumb is for local images and strImage is for last.fm.

is strThumb empty for the ones that don't work?
if so, what you're seeing is correct behaviour.

<thumb> will use strThumb and strThumb only.

Hitcher Wrote:Why placing $INFO[Window.Property(WatchList_Album.1.Thumb)] in <thumb> or <icon> control determines which is used is beyond me.

EDIT: When using <icon> the images all show up but they're still using masterprofile or last.fm and I've figured out that the ones linked to last.fm don't load instantly unlike the others.

<icon> will use strThumb and fallback to strImage when strThumb is empty.

Hitcher Wrote:XBMC must use strImage for the thumb control and strThumb for the icon control (with strThumb used as a fallback).

i'm afraid i fail to follow that logic?

afaik xbmc uses strThumb for the thumb control and strThumb for the icon control (with strImage used as a fallback).

wiki:
Quote:ListItem.Thumb Shows the thumbnail (if it exists) of the currently selected item in a list or thumb control
ListItem.Icon Shows the thumbnail (if it exists) of the currently selected item in a list or thumb control. If no thumbnail image exists, it will show the icon.



- ronie - 2012-01-02 02:20

Hitcher Wrote:I've noticed this problem on my OpenELEC machine and did think of suggesting we make it optional that it's run in the background and let the user decide how it operates but I'll let ronie decide what he wants to do.

sure, what would be the best way to implement it?

i'm thinking of adding an addon setting to the script, where the user can select between:
- update watchlist after playing a video/song (this is the current behaviour)
- update watchlist every hour

thoughts anyone?


- `Black - 2012-01-02 02:45

If I run the script for episodes only, I would expect that it updates only if I play an episode, not after a song or movie or something else was played. At least you can detect if a song or video is playing.


- Hitcher - 2012-01-02 19:03

ronie Wrote:sure, what would be the best way to implement it?

i'm thinking of adding an addon setting to the script, where the user can select between:
- update watchlist after playing a video/song (this is the current behaviour)
- update watchlist every hour

thoughts anyone?

Sounds good to me, thanks.

As for my thumbs/icons problem I've simply nuked my database and rescanned without fetching additional information.