[RELEASE] Random and last items smartplaylist script for Skins

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
denywinarto Offline
Senior Member
Posts: 249
Joined: Jun 2012
Reputation: 0
Post: #256
(2012-07-03 12:11)mikebzh44 Wrote:  Could you post Film_Barat.xsp on http://xbmclogs.com/? please.

When you browser this smart playlist, movies are displayed in XBMC ?

Thanks for the fast response,
Like this?

http://xbmclogs.com/show.php?id=4416

Yes, it shows the correct movies from that category
(film barat is west movie)

Oh yea, and there's aplhabetical subfolders after that folder
/Film Barat
// A-E
// F-J
// K-O
// P-T
// U-Z
And the movies are inside a folder based on their names,
e,g ironman :
K:\Multimedia\Film_Barat\F-J\Ironman\Ironman.avi
(This post was last modified: 2012-07-03 12:31 by denywinarto.)
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,801
Joined: Nov 2011
Reputation: 49
Location: Nantes - France
Post: #257
Hi Deny.

I don't know what's happen on your HTPC but with your movie database and your smart playlist file, I have no issue on my HTPC running Glass skin :

As you can see, home widget display latest movies (no thumbnail because I don't have your cache directory) :

[Image: 1341475202-screenshot000.png]

And the smart playlist is OK :

[Image: 1341475233-screenshot001.png]

Which OS and skin did you use ?

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

find quote
Mudislander Offline
Skilled Skinner
Posts: 1,684
Joined: Jun 2009
Reputation: 39
Post: #258
I've had a request to show a widget for musicvideos on confluence.lite.mod . Any chance of getting support for musicvideos with this script ?

Cheers hey.

Noli illegitimi carborundum
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,801
Joined: Nov 2011
Reputation: 49
Location: Nantes - France
Post: #259
I will have a look this week Wink

I think it's possible.

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

find quote
mikebzh44 Offline
Posting Freak
Posts: 1,801
Joined: Nov 2011
Reputation: 49
Location: Nantes - France
Post: #260
I can't test as I don't have musicvideo yet but I think that with a smart playlist, you can display musicvideo in widgets.

But I will add some DVD concert to my library and look if I can add this to the script.

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

find quote
Mudislander Offline
Skilled Skinner
Posts: 1,684
Joined: Jun 2009
Reputation: 39
Post: #261
Thanks hey, I'm also having to dig around for some musicvideos Smile

Noli illegitimi carborundum
find quote
denywinarto Offline
Senior Member
Posts: 249
Joined: Jun 2012
Reputation: 0
Post: #262
(2012-07-05 10:01)mikebzh44 Wrote:  Hi Deny.

I don't know what's happen on your HTPC but with your movie database and your smart playlist file, I have no issue on my HTPC running Glass skin :

As you can see, home widget display latest movies (no thumbnail because I don't have your cache directory) :

[Image: 1341475202-screenshot000.png]

And the smart playlist is OK :

[Image: 1341475233-screenshot001.png]

Which OS and skin did you use ?

Hi mikebzh44 sorry didn't know your reply,
i have changed my approach, instead of smart playlist i used favourites.
Why?
Well because when we add new movies, smart playlist won't list it unless the metadata is found.
Now this is a problem because i have tons of asian serials that's not recognized under smart playlist.
So can your method be used for favourites?
I used the same home menu layout but they're favourites, not smart playlist.
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,801
Joined: Nov 2011
Reputation: 49
Location: Nantes - France
Post: #263
I will dig into it today.

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

find quote
mikebzh44 Offline
Posting Freak
Posts: 1,801
Joined: Nov 2011
Reputation: 49
Location: Nantes - France
Post: #264
I don't think that my script can handle Favorites because I did not found any method in JSON API to request Favorites :

http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v4

or to link Favorite database :

http://wiki.xbmc.org/?title=Opening_Windows_and_Dialogs

How did you manage your Favorite ? Each time you add a new movie, you add it in your Favorites ? Or did you add the root directory from the file view ?

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

find quote
denywinarto Offline
Senior Member
Posts: 249
Joined: Jun 2012
Reputation: 0
Post: #265
(2012-07-10 11:59)mikebzh44 Wrote:  I don't think that my script can handle Favorites because I did not found any method in JSON API to request Favorites :

http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v4

or to link Favorite database :

http://wiki.xbmc.org/?title=Opening_Windows_and_Dialogs

How did you manage your Favorite ? Each time you add a new movie, you add it in your Favorites ? Or did you add the root directory from the file view ?

I see,
First i do a library scan for the folders that will be used as the main menu (not the submenu)
then i just created a bunch of addresses for both menu and submenu in favourites.xml,
and then i input those favourites to custom home menu and submenu using transparency's home menu
Like this :
Code:
<favourites>
    <favourite name="Film Barat">ActivateWindow(10025,K:\\Multimedia\\Film_Barat\\)</favourite>
    <favourite name="A-E">ActivateWindow(10025,K:\\Multimedia\\Film_Barat\\A-E\\)</favourite>
    <favourite name="F-J">ActivateWindow(10025,K:\\Multimedia\\Film_Barat\\F-J\\)</favourite>
    <favourite name="K-O">ActivateWindow(10025,K:\\Multimedia\\Film_Barat\\K-O\\)</favourite>
    <favourite name="P-T">ActivateWindow(10025,K:\\Multimedia\\Film_Barat\\P-T\\)</favourite>
    <favourite name="U-Z">ActivateWindow(10025,K:\\Multimedia\\Film_Barat\\U-Z\\)</favourite>    
    <favourite name="Film Asia">ActivateWindow(10025,K:\\Multimedia\\Film_Asia\\)</favourite>
    <favourite name="A-E">ActivateWindow(10025,K:\\Multimedia\\Film_Asia\\A-E\\)</favourite>
    <favourite name="F-J">ActivateWindow(10025,K:\\Multimedia\\Film_Asia\\F-J\\)</favourite>
    <favourite name="K-O">ActivateWindow(10025,K:\\Multimedia\\Film_Asia\\K-O\\)</favourite>
    <favourite name="P-T">ActivateWindow(10025,K:\\Multimedia\\Film_Asia\\P-T\\)</favourite>
    <favourite name="U-Z">ActivateWindow(10025,K:\\Multimedia\\Film_Asia\\U-Z\\)</favourite>
    <favourite name="Serial Barat">ActivateWindow(10025,K:\\Multimedia\\Serial_Barat\\)</favourite>
    <favourite name="A-E">ActivateWindow(10025,K:\\Multimedia\\Serial_Barat\\A-E\\)</favourite>
    <favourite name="F-J">ActivateWindow(10025,K:\\Multimedia\\Serial_Barat\\F-J\\)</favourite>
    <favourite name="K-O">ActivateWindow(10025,K:\\Multimedia\\Serial_Barat\\K-O\\)</favourite>
    <favourite name="P-T">ActivateWindow(10025,K:\\Multimedia\\Serial_Barat\\P-T\\)</favourite>
    <favourite name="U-Z">ActivateWindow(10025,K:\\Multimedia\\Serial_Barat\\U-Z\\)</favourite>        
    <favourite name="Serial Asia">ActivateWindow(10025,K:\\Multimedia\\Serial_Asia\\)</favourite>
    <favourite name="A-E">ActivateWindow(10025,K:\\Multimedia\\Serial_Asia\\A-E\\)</favourite>
    <favourite name="F-J">ActivateWindow(10025,K:\\Multimedia\\Serial_Asia\\F-J\\)</favourite>
    <favourite name="K-O">ActivateWindow(10025,K:\\Multimedia\\Serial_Asia\\K-O\\)</favourite>
    <favourite name="P-T">ActivateWindow(10025,K:\\Multimedia\\Serial_Asia\\P-T\\)</favourite>
    <favourite name="U-Z">ActivateWindow(10025,K:\\Multimedia\\Serial_Asia\\U-Z\\)</favourite>    
    <favourite name="Anime">ActivateWindow(10025,K:\\Multimedia\\Anime\\)</favourite>
    <favourite name="A-E">ActivateWindow(10025,K:\\Multimedia\\Anime\\A-E\\)</favourite>
    <favourite name="F-J">ActivateWindow(10025,K:\\Multimedia\\Anime\\F-J\\)</favourite>
    <favourite name="K-O">ActivateWindow(10025,K:\\Multimedia\\Anime\\K-O\\)</favourite>
    <favourite name="P-T">ActivateWindow(10025,K:\\Multimedia\\Anime\\P-T\\)</favourite>
    <favourite name="U-Z">ActivateWindow(10025,K:\\Multimedia\\Anime\\U-Z\\)</favourite>        
    <favourite name="Serial Anime">ActivateWindow(10025,K:\\Multimedia\\Serial_Anime\\)</favourite>
    <favourite name="A-E">ActivateWindow(10025,K:\\Multimedia\\Serial_Anime\\A-E\\)</favourite>
    <favourite name="F-J">ActivateWindow(10025,K:\\Multimedia\\Serial_Anime\\F-J\\)</favourite>
    <favourite name="K-O">ActivateWindow(10025,K:\\Multimedia\\Serial_Anime\\K-O\\)</favourite>
    <favourite name="P-T">ActivateWindow(10025,K:\\Multimedia\\Serial_Anime\\P-T\\)</favourite>
    <favourite name="U-Z">ActivateWindow(10025,K:\\Multimedia\\Serial_Anime\\U-Z\\)</favourite>    
</favourites>
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,801
Joined: Nov 2011
Reputation: 49
Location: Nantes - France
Post: #266
OK so, for me, it will be impossible as favorites are like short-cuts to your directories. And as there is no metadata, your movies are not added to database so script can't check for any update.

Maybe one possibility is to write an other script that can act like MyPicsDB and scan directories to search for new files.

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

(This post was last modified: 2012-07-10 13:27 by mikebzh44.)
find quote
denywinarto Offline
Senior Member
Posts: 249
Joined: Jun 2012
Reputation: 0
Post: #267
(2012-07-10 13:07)mikebzh44 Wrote:  OK so, for me, it will be impossible as favorites are like short-cuts to your directories. And as there is no metadata, your movies are not added to database so script can check for any update.

Maybe one possibility is to write an other script that can act like MyPicsDB and scan directories to search for new files.

I see,
it's alright, thanks for trying it out.
Hopefully on the next version the library is organized better
find quote
butchabay Offline
Skilled Skinner
Posts: 3,843
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #268
Request:

Properties to show TVShow Thumbs or Season Thumbs instead of Episode Thumbs? We'll have this option for xbmc Frodo showing in Recently Added Episodes and the Watchlist Script already supports these, i really think it would be a nice addition for this script and for sure very welcome by all skinners out there Smile

Thanx for all your work and keep the excellent job mate!
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,801
Joined: Nov 2011
Reputation: 49
Location: Nantes - France
Post: #269
I'll have a look today for this new feature.

I hope I will not have to make to much JSON request because this will slow down the script Sad

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

find quote
butchabay Offline
Skilled Skinner
Posts: 3,843
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #270
(2012-07-20 09:12)mikebzh44 Wrote:  I'll have a look today for this new feature.

I hope I will not have to make to much JSON request because this will slow down the script Sad

Absolutely not ! It's the only request i have Smile Thanx for looking into it ... TV Show Thumb will be awesome, Season Thumb is not really a must have.

Here a screenshot i'm working on, for XBMC Frodo:

[Image: 6yvm4.jpg]
find quote
Post Reply