No, if you are a skinner, you can add this script to your skin.
Maybe you should rename your xsp file to : ImdbTop250.xsp
If you display your playlist in XBMC, you have a movie ?
When you run the script in home.xml or include.xml (look how other skinners call it) :
XBMC.RunScript(script.randomandlastitems,limit=1,type=Movie,method=Last,playlist=special://masterprofile/playlists/ImdbTop250.xsp,menu=1)
You should have windows properties :
PlaylistLastMovie1.Count
PlaylistLastMovie1.Unwatched
PlaylistLastMovie1.Watched
PlaylistLastMovie1.1.Rating
PlaylistLastMovie1.LastMovie1.Plot
PlaylistLastMovie1.LastMovie1.RunningTime
PlaylistLastMovie1.LastMovie1.Path
PlaylistLastMovie1.LastMovie1.Rootpath
PlaylistLastMovie1.LastMovie1.Fanart
PlaylistLastMovie1.LastMovie1.Thumb
PlaylistLastMovie1.LastMovie1.Title
PlaylistLastMovie1.LastMovie1.Year
PlaylistLastMovie1.LastMovie1.Trailer
Has explained in first message of this thread :
http://forum.xbmc.org/showthread.php?tid=122448
[RELEASE] Random and last items smartplaylist script for Skins
mikebzh44
Posting Freak Posts: 1,049 Joined: Nov 2011 Reputation: 18 Location: Nantes - France |
2012-03-07 18:17
Post: #171
|
| find quote |
Martijn
Team-XBMC Joined: Jul 2011 Reputation: 114 Location: Dawn of time |
2012-03-07 18:19
Post: #172
mikebzh44 Wrote:I will have a closer look to commoncache but if you have set up parameters for display only unwatched movies for example, each time the script is called, I have to scan all the playlist/library to seach for unwatched movies. And what's happen when you add a new source to your library ?You decide how long the cached version is valid. You can vary between 1 second or xx hours. When the set time expires it will retrieve new data when script is run. Within that time it will use the 'old' data. Quote:Maybe there is a JSON method to known if database has been updated, I will ask to the specific thread. There isn't Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules. For troubleshooting and bug reporting, make sure you read this first For your mediacenter artwork go to ![]() |
| find quote |
mikebzh44
Posting Freak Posts: 1,049 Joined: Nov 2011 Reputation: 18 Location: Nantes - France |
2012-03-07 18:25
Post: #173
Martijn Wrote:You decide how long the cached version is valid. You can vary between 1 second or xx hours. I think I can use commoncache when unwatched=false and resume=false. But script won't be up to date if you add a new movie to your database : Example : - execute script + commoncache (refresh every hour) JSON results - widgets are OK - add a new movie to database - widget "Recently added movies" is outdated Or I can add a new option : useCommonCache=True/False |
| find quote |
Martijn
Team-XBMC Joined: Jul 2011 Reputation: 114 Location: Dawn of time |
2012-03-07 18:38
Post: #174
Don't add to much options IMHO.
It was just a suggestion like if you run user run the script several times it could be somewhat faster in processing. You will always have down and upside to a certain way of working. Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules. For troubleshooting and bug reporting, make sure you read this first For your mediacenter artwork go to ![]() |
| find quote |
mikebzh44
Posting Freak Posts: 1,049 Joined: Nov 2011 Reputation: 18 Location: Nantes - France |
2012-03-07 19:15
Post: #175
I known that caching data could be a way to speed up the script but only in some case.
I must have a look to commoncache !! |
| find quote |
mikebzh44
Posting Freak Posts: 1,049 Joined: Nov 2011 Reputation: 18 Location: Nantes - France |
2012-03-08 17:37
Post: #176
Version 1.1.5 released
Just a little cosmetic change. Properties are cleared only when needed to avoid blinking effect when widget is refresh |
| find quote |
Martijn
Team-XBMC Joined: Jul 2011 Reputation: 114 Location: Dawn of time |
2012-03-14 18:57
Post: #177
If no issues/bugs are found feel free to do a PR to add this to offcial XBMC repo
This way even less experienced users can benefit from this great script ![]() How-to: Official_add-on_repository Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules. For troubleshooting and bug reporting, make sure you read this first For your mediacenter artwork go to ![]() |
| find quote |
Big_Noid
Skilled Skinner Joined: Jul 2010 Reputation: 68 Location: Below sea level |
2012-03-17 10:14
Post: #178
Instead of having to determine the type in the script parameters, couldn't the type (movies or episodes) be fetched from the playlist itself? That way we don't have to have 4 different options for 1 custom menu item.
|
| find quote |
mikebzh44
Posting Freak Posts: 1,049 Joined: Nov 2011 Reputation: 18 Location: Nantes - France |
2012-03-17 10:21
Post: #179
It's an idea, and a good one
![]() But, when calling the script without playlist (to work on library), you will have to set type= option. I will work on it next week. |
| find quote |
Big_Noid
Skilled Skinner Joined: Jul 2010 Reputation: 68 Location: Below sea level |
2012-03-17 10:28
Post: #180
Okay, but that's up to the skinner right? So there could be type=playlist or type=library instead?
|
| find quote |


![[Image: fanarttv.png]](http://trakt.us/images/thanks/fanarttv.png)


Search
Help