Kodi Community Forum
[RELEASE] Random and last items smartplaylist script for Skins - 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] Random and last items smartplaylist script for Skins (/showthread.php?tid=122448)



- mikebzh44 - 2012-02-29

If you want to test TV Shows playlists with Glass, you can edit includes.xml (in skin.Glass.svn/1080i directory), lines 2559 and 2560 :

before : playlist=,

after : playlist=special://masterprofile/playlists/video/Kinderseries.xsp,

Then relaunch XBMC, widgets now displaying episodes (Random and Last) from your playlist Wink


- Eisi2005 - 2012-02-29

@mikebzh44

something is wrong Sad

I have tested with modified glass and convergence skin and i become this debug log.

http://pastebin.com/7cE8w1BT

animation.xsp with childmovies is ok and Kinderserie.xsp and tv-serie.xsp with tv-shows don´t work whereas there is nothing different.

THX for your help

Greets
Eisi


- butchabay - 2012-02-29

Maybe you've tried to reactivate your playlists? Or maybe create the playlists again?


- mikebzh44 - 2012-02-29

With Glass, you have modifie the include.xml as :

Code:
    <onload>XBMC.RunScript(script.randomandlastitems,playlist=special://masterprofiles/playlists/video/tv-serie.xsp,method=Random,menu=TvShows,limit=10,unwatched=True,resume=False,type=Episode)</onload>
    <onload>XBMC.RunScript(script.randomandlastitems,playlist=special://masterprofiles/playlists/video/tv-serie.xsp,method=Last,menu=TvShows,limit=10,unwatched=True,resume=False,type=Episode)</onload>

With this modifications, the TV-shows menu widgets should display Recently added and Random items from tv-shows playlist.

Don't use your tv-shows playlists with custom menus.


- mikebzh44 - 2012-03-01

@Eisi2005 : Convergence can only manage Movie Playlists, not TV-Shows playlists.

I will put a message on Convergence topic to inform skinner

With Glass and editing XML files, it should be OK. Or wait to the next SVN release.


- Eisi2005 - 2012-03-01

@mikebzh44

Thx for your help. I don´t know that the tv-show playlist has no function with custom homemenu, because movie playlist work with custom menu.

Now i have added the two lines again in glass skin and i become a widget, but only shows one last episode the other are free. In debug log i have error they say could not read tv-serie.xsp

Here is the logfile

http://pastebin.com/SDsbp1kg

Could it be that the directory in glass entry is wrong ? My xsp lies here:

C:\Users\AdminEisi2005\AppData\Roaming\XBMC\userdata\playlists\video\TV-Serie.xsp

Greets
Eisi


- Mudislander - 2012-03-01

mikebzh44 Wrote:@Eisi2005 : Convergence can only manage Movie Playlists, not TV-Shows playlists.

I will put a message on Convergence topic to inform skinner

With Glass and editing XML files, it should be OK. Or wait to the next SVN release.

Working on it now Smile I take it movie lists are behaving themselves in Convergence ?


- mikebzh44 - 2012-03-01

@Eisi2005 : It's because unwatched is set to True so widget will display only unwatched items.

Set it to False :

<onload>XBMC.RunScript(script.randomandlastitems,playlist=special://masterprofiles/playlists/video/tv-serie.xsp,method=Random,menu=TvShows,limit=10,unwatched=False,resume=False,type=Episode)</onload>


- Eisi2005 - 2012-03-01

@mikebzh44

it´s not the watched counter. I have no watched movies on my testsystem, but i have switch it with no change.

I have made new playlists but nothing change. All is fine now but only one episode is in widget.

Here is the latest logfile:

http://pastebin.com/pWYpWrRM

Greets
Eisi


- mikebzh44 - 2012-03-01

Ok, sorry, I have make a mistake (special://masterprofiles but there is no s), correct calling is :

<onload>XBMC.RunScript(script.randomandlastitems,playlist=special://masterprofile/playlists/video/tv-serie.xsp,method=Random,menu=TvShows,limit=10,unwatched=False,resume=False,type=Episode)</onload>
<onload>XBMC.RunScript(script.randomandlastitems,playlist=special://masterprofile/playlists/video/tv-serie.xsp,method=Last,menu=TvShows,limit=10,unwatched=False,resume=False,type=Episode)</onload>


- Eisi2005 - 2012-03-01

@mikebzh44

Thanks for your great help. Now all works !!!!

Are you working on tv-show custom menu playlist ?

Greets
Eisi


- mikebzh44 - 2012-03-01

Not me, I'm not a skinner but FMRonan is working on it Wink


- Eisi2005 - 2012-03-01

ok,

nice to hear Smile

Greets
Eisi


- fmronan - 2012-03-01

Added for tomorrow REV 121 in glass; with tvshows and More

Image

With Resume movies et tvshows
Image


- Mudislander - 2012-03-02

Just checking on correct syntax and could use some help

From the readme.txt
PHP Code:
playlist PathAndNameOfPlaylist Name of the smartplaylist like special://masterprofile/playlists/video/children.xsp
                                 
| or empty to request global database
                                 
Must be empty if type=Episode 

If you set "type=Episode" then you drop the "playlist =****" ?