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)



RE: [RELEASE] Random and last items smartplaylist script for Skins - Rantanplan-1 - 2014-04-09

Problem with Musicvideos

Does i do something wrong?

my onload (Home.xml):
PHP Code:
<onload>XBMC.RunScript(script.randomandlastitems,type=MusicVideos,limit=10,method=Last,playlist=special://skin/playlists/MusicVideos/MusicClips.xsp,menu=Menu7)</onload> 
(to test without condition

my item:
PHP Code:
<item>
        <
label>$INFO[Window(Home).Property(PlaylistLastMusicVideosMenu7.1.Title)]</label>
        <
label2>$INFO[Window.Property(PlaylistLastMusicVideosMenu7.1.Plot)]</label2>
        <
onclick>PlayMedia("$INFO[Window.Property(PlaylistLastMusicVideosMenu7.1.File)]")</onclick>
        <
icon>-</icon>
        <
thumb>$INFO[Window(Home).Property(PlaylistLastMusicVideosMenu7.1.Art(poster))]</thumb>
        <
property name="Fanart">$INFO[Window(Home).Property(PlaylistLastMusicVideosMenu7.1.Art(fanart))]</property>
        <
property name="Year">$INFO[Window(Home).Property(PlaylistLastMusicVideosMenu7.1.Year)]</property>
        <
property name="Runtime">$INFO[Window(Home).Property(PlaylistLastMusicVideosMenu7.1.Runtime)]</property>
        <
property name="Rating">$INFO[Window(Home).Property(PlaylistLastMusicVideosMenu7.1.Rating)]</property>
        <
visible>!IsEmpty(Window(Home).Property(PlaylistLastMusicVideosMenu7.1.Title)) + Container(9000).Hasfocus(18)</visible>
</
item

if i use to test:
PHP Code:
<!--item>
         <
label>$INFO[Window.Property(LatestMusicVideo.2.Title)]</label>
         <
label2>$INFO[Window.Property(LatestMusicVideo.2.Plot)]</label2>
         <
onclick>PlayMedia($ESCINFO[Window.Property(LatestMusicVideo.2.Path)])</onclick>
         <
icon>$INFO[Window.Property(LatestMusicVideo.2.Thumb)]</icon>
         <
thumb>-</thumb>
         <
property name="Fanart">$INFO[Window.Property(LatestMusicVideo.2.Fanart)]</property>
         <
property name="Year">$INFO[Window.Property(LatestMusicVideo.2.Year)]</property>
         <
property name="Runtime">$INFO[Window.Property(LatestMusicVideo.2.RunningTime)]</property>
         <
property name="Rating">$INFO[Window.Property(LatestMusicVideo.2.Rating)]</property>
         <
visible>!IsEmpty(Window.Property(LatestMusicVideo.2.Title)) + Container(9000).Hasfocus(18)</visible>
</
item--> 
All works as expected.

So does i do a mistake?

Regards.


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2014-04-10

It because, type is forced to MusicVideo where reading XSP file.

So properties are PlaylistLastMusicVideoMenu7 in your case, as you don't provide property= parameter.


RE: [RELEASE] Random and last items smartplaylist script for Skins - Rantanplan-1 - 2014-04-12

(2014-04-10, 12:16)mikebzh44 Wrote: It because, type is forced to MusicVideo where reading XSP file.
No mather if i force "type="MusicVideo" in the onload or not still doesnt work.

You write here about "MusicVideo" without the "s" in the description is written "MusicVideos" with the "s"

(2014-04-10, 12:16)mikebzh44 Wrote: So properties are PlaylistLastMusicVideoMenu7 in your case, as you don't provide property= parameter.
Like i did (example about)
PHP Code:
$INFO[Window(Home).Property(PlaylistLastMusicVideo(s)Menu7.1.Title)] 
without the "s" ? did try both; No Luck.

Or did i get you wrong?

Does it work on your side?

Regards.


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2014-04-14

For me, PlaylistLastMusicVideoMenu7 should work.

Could you edit randomandlastitems.py in addon folder, go to line 764 and add this line :

BEFORE

Code:
#
        if PROPERTY == "":
            PROPERTY = "Playlist%s%s%s" % ( METHOD, TYPE, MENU )

AFTER

Code:
#
        if PROPERTY == "":
            PROPERTY = "Playlist%s%s%s" % ( METHOD, TYPE, MENU )
        [b]print("##### PROPERTY =", PROPERTY)[/b]

Take care at number of spaces or tabulations before each line as python use indentation.

Now run your skin and go to log file, you will see how the script named your properties.

PS : line with # does not exist I only put in snipet to keep indentation.


RE: [RELEASE] Random and last items smartplaylist script for Skins - schimi2k - 2014-04-17

hey mikebzh44 Smile
any news about my problem ? (Post: #675)


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2014-04-17

Can you try with XSP files stored in userdata/playlists/video ?

Sorry, I'm very busy at work this week and the next one and after, it's holydays Wink


RE: [RELEASE] Random and last items smartplaylist script for Skins - schimi2k - 2014-04-20

i have it there before - same result
but no rush Smile i can wait


RE: [RELEASE] Random and last items smartplaylist script for Skins - Solidify - 2014-04-25

I'm trying to install this add-on (last items for movies) but when I try to install from the ZIP file it tells me that "dependencies not met". I'm on Frodo 12.3 running Aeon Nox (Windows 7).
Any help is appreciated.


RE: [RELEASE] Random and last items smartplaylist script for Skins - onlyyou - 2014-04-28

hey all,
how can I generate a recommanded TV show (well, episodes) playlist ?
I get the way the script works in my skin (Nox) for the widgets,
but I would want to generate a longer (like 20/25 episodes) episodes list inside a playlist (with a classic episodes views in Nox, not a widget one)
Should I link a Nox buton to a script ?
Many thanks !


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2014-04-28

This script will be useless for what you are looking for.
This script goal is to provide properties to skins to populate widgets.
You need to build a special smart playlist but I don't know if filters to limit playlists size are available in XBMC.
BTW, your question is not linked to the script or the skin but to XBMC in general.


RE: [RELEASE] Random and last items smartplaylist script for Skins - onlyyou - 2014-04-28

It's just that the way this widget create its "featured" tv episodes list seems very smart and accurate to me.
And i would love to make a playlist from it...
(ps : funny to talk english to an another french guy Wink)


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2014-04-28

If you want to speak French with me, use our French forum Wink

http://passion-xbmc.org/forum/


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2014-04-29

(2014-04-25, 05:47)Solidify Wrote: I'm trying to install this add-on (last items for movies) but when I try to install from the ZIP file it tells me that "dependencies not met". I'm on Frodo 12.3 running Aeon Nox (Windows 7).
Any help is appreciated.
No dependencies error for me. I'm running Windows 8.1, XBMC 12.3, get ZIP from GITHUB and install it with no warning or message.


RE: [RELEASE] Random and last items smartplaylist script for Skins - Solid One - 2014-05-07

Will it work on XBMC 13 Gotham, that was released a few days ago? BTW, I'm using Aeon Nox.


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2014-05-07

Yes, work fine on Gotham. I'm using it with Aeon Nox 4.1.9 Gotham.


This forum uses Lukasz Tkacz MyBB addons.