[RELEASE] Random and last items smartplaylist script for Skins

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mikebzh44 Offline
Posting Freak
Posts: 1,055
Joined: Nov 2011
Reputation: 18
Location: Nantes - France
Post: #191
Did you use Count, Watched and Unwatched properties ?

fmronan have lost those properties in Glass and I wonder if it's due to my last version.

As soon as fmronan get back those properties, I will push the script to official repo.

Sorry for my english, but, you know, I'm French so ...

find quote
Big_Noid Online
Skilled Skinner
Posts: 2,627
Joined: Jul 2010
Reputation: 68
Location: Below sea level
Post: #192
They work fine with version 1.1.6.
I use this to run the script:
Code:
XBMC.RunScript(script.randomandlastitems, playlist=$INFO[Skin.String(HomeMenuVideoPlaylist1_Path)], method=$INFO[Skin.String(MethodVPL1)], limit=10, unwatched=$INFO[Skin.String(IncludeWatchedCVPL)], resume=False, propertie=PlaylistLastMovieVPL1)
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,055
Joined: Nov 2011
Reputation: 18
Location: Nantes - France
Post: #193
Yes, fmronan have found the problem in Glass (some code lost when including Artwork Downloader addon).

I will post version 1.1.7 on Ciné-passion repo to fix properties name and if no bugs found I will push it to official repo monday morning.
Version 1.1.7 released

v1.1.7
- [Fix] When type= was not set with playlist, properties name was unwellformed

Sorry for my english, but, you know, I'm French so ...

(This post was last modified: 2012-03-23 18:06 by mikebzh44.)
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,055
Joined: Nov 2011
Reputation: 18
Location: Nantes - France
Post: #194
Version 1.1.8 released

v1.1.8
- [Add] New property Resolution for Movies. Values are blank, 480, 540, 576, 720, 1080

[Off Topic]
I was thinking about skinners who want to put this script as a require in their skin. I thought that you could put a require on passion-xbmc repository and then a require on my script. But passion-xbmc repository can't be added to official repository Sad
Someone from the XBMC team (Martijn ?) can explain why ?
It could be a great promotion for passion-XBMC repository and users can discover some new addons.
[/Off Topic]

Sorry for my english, but, you know, I'm French so ...

find quote
spiff Online
Grumpy Bastard Developer
Posts: 12,179
Joined: Nov 2003
Reputation: 82
Post: #195
because it's a third party repository and we want to make it absolute 110% clear by you having to add it manually.

if you want your add-ons officially "embraced", they need to be under our control (in terms of what is distributed from xbmc.org).

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-03-28 17:09 by spiff.)
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,055
Joined: Nov 2011
Reputation: 18
Location: Nantes - France
Post: #196
Version 1.1.9 released

v1.1.9
- [Fix] If video has no stream details, resolution is set to blank

Has this script is still in development and I will add random and last properties for music, I think I won't put it on official repository, because of point 6.1 :

http://wiki.xbmc.org/index.php?title=Off...ry#Updates

Sorry for my english, but, you know, I'm French so ...

(This post was last modified: 2012-03-29 10:17 by mikebzh44.)
find quote
Mudislander Online
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #197
Out of interest, if you use the property "propertie=SomePlayList" and do not set "type", is there anyway you could get if the type is Movie or Episode from the script. This makes a difference for me as the resulting list for Movies are shown as portrait while Episodes are landscape

Noli illegitimi carborundum
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,055
Joined: Nov 2011
Reputation: 18
Location: Nantes - France
Post: #198
Could you explain more, I don't understand your remark Sad

Sorry for my english, but, you know, I'm French so ...

find quote
Mudislander Online
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #199
(2012-04-01 12:31)mikebzh44 Wrote:  Could you explain more, I don't understand your remark Sad

I've been redoing support for this script and have used

Code:
XBMC.RunScript(script.randomandlastitems,playlist=SomePlayList,method=Last,limit​=10,unwatched=False,resume=False,propertie=MyFirstPlaylist)

And not added the option "type = Movie/Episode" so that type will be read from playlist file. Which works and is easier.

But when I want to display the output I now need to know if the playlist (Added by a user) was for Movie/Episode as they are displayed differently

Is there anyway I can get from the script what "type" (Movie/Episode) the playlist of " propertie=MyFirstPlaylist" is

Noli illegitimi carborundum
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,055
Joined: Nov 2011
Reputation: 18
Location: Nantes - France
Post: #200
No, but I can return a new property Type.

I'm busy today but I will make it for tomorrow Wink

Sorry for my english, but, you know, I'm French so ...

find quote
Post Reply