• 1
  • 31
  • 32
  • 33(current)
  • 34
  • 35
  • 53
[RELEASE] Random and last items smartplaylist script for Skins
(2013-07-23, 21:42)pseitz Wrote: Can someone explain how to use this script? Is there anywhere a new option?
The readme contains just a bunch of variables

Only for skinners who know how to code.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
Yes, this script did not provide any front end screen.

It have to be called within the skin to set up properties used by the skin to display informations.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
New release 2.1.7

Because people were waiting for this feature for soooooooooo long :

http://forum.xbmc.org/showthread.php?tid...pid1143109

now this script can handle MusicVideo smartplaylists.

See GITHUB and READM.txt for new properties.

For now, the only issue is that when you want to play the music video ID #, it's the movie ID # that is actually played :S

I'm waiting for answers in JSON thread :

http://forum.xbmc.org/showthread.php?tid...pid1478311

But, skinners, you can start to play with and make dedicated screens or widgets.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
Everything is OK with the script, no JSON-RPC issue.

It's only a Aeon Nox 4.1.9 issue because widgets seems to not use Play property from the script but DBID and widget did not make the difference between movies custom menu and music videos custom menu.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
I am trying to debug an error I am having with the randomandlastitems.py script. V2.1.6
I am still learning python coming from Java background.
It seems to fail at the line 127 at _playcount = _movie['playcount']
I am trying to trace back the calls but unable to understand the JSON-RPC call. because the directory is passed as PLAYLIST = "videodb://1/2/" in the Files.GetDirectory method. but is that a directory?
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
videodb://1/2 = Movies title

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

Try _movie.get('playcount', 0)

But it means that JSON query did not return playcount for this movie :S
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
(2013-08-16, 10:01)mikebzh44 Wrote: videodb://1/2 = Movies title

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

Try _movie.get('playcount', 0)

But it means that JSON query did not return playcount for this movie :S

Can you explain how "videodb://1/2" is considered as a directory? I would have expected somthing like c:\...\...\ in windows or /home/.../.../ on linux
For the signature for Files.GetDirectory in the JSON-RPC API states:

5.4.2 Files.GetDirectory
Get the directories and files in the given directory
Permissions:
ReadData
Parameters:
string directory
[ Files.Media media = "files" ]
[ List.Fields.Files properties ]
[ List.Sort sort ]
Returns:
Type: object
Properties:
List.LimitsReturned limits
List.Item.File[] files
[show] JSON Schema Description
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
I don't know oh it's work but it's work Wink

This kind of path is a XBMC alias.

Ask in JSON-RPC or XBMC development thread.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
Anyway to force the script to run for testing purposes?
I have been exiting XBMC then starting it again repeatedly.
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
Ok I have this smartplay list
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
<name>Series</name>
<match>all</match>
<rule field="path" operator="startswith">
<value>smb://NAS1/Videos/Series/</value>
</rule>
<order direction="ascending">sorttitle</order>
</smartplaylist>

Everytime this script fails its called with TYPE=Movie
and for some reason it looks at my episodes directory
Why is that?
Here is log from one of the threads:
http://paste.ubuntu.com/5992759/
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
I'm on holidays so I will have a look this evening or tomorrow morning.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
I don't know.

I'm using this smart playlist :

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
    <name>Game of Thrones</name>
    <name>Series</name>
    <match>all</match>
    <rule field="path" operator="startswith">
        <value>D:\Utilisateurs\Mikael\Vidéos\Series\Game of Thrones</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

In Aeon Nox, the script is called this way :

Code:
RunScript(script.randomandlastitems, playlist=special://profile/playlists/video/Game of Thrones.xsp, method=Last, limit=10, unwatched=False, resume=False, property=SmartPlaylist1)

I have remove type= parameter to let the script find it.

And smart playlist is detected as tvshows and type=Episode is returned.

Could you send me your myvideos75.db database (use rapidshare or some other file hosting server) ?

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

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
(2013-08-16, 23:07)mikebzh44 Wrote: Could you send me your myvideos75.db database (use rapidshare or some other file hosting server) ?

check your inbox.
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
I don't understand your problem. I'm using your playlist and your database and everything is OK.

I have put some debug in log and type is OK :

Code:
16:36:55 T:2808  NOTICE: ('##### TYPE=', 'Episode')

And properties are OK :

Code:
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.1.Title', u'Brazil')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.1.TVshowTitle', u'Falling Skies')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.2.Title', u'Journey to Xibalba')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.2.TVshowTitle', u'Falling Skies')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.3.Title', u'Strange Brew')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.3.TVshowTitle', u'Falling Skies')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.4.Title', u'The Pickett Line')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.4.TVshowTitle', u'Falling Skies')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.5.Title', u'The Truth Hurts')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.5.TVshowTitle', u'Warehouse 13')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.6.Title', u'Be Silent And Come Out')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.6.TVshowTitle', u'Falling Skies')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.7.Title', u'All the Time in the World')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.7.TVshowTitle', u'Warehouse 13')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.8.Title', u'Search and Recover')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.8.TVshowTitle', u'Falling Skies')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.9.Title', u'Lost & Found')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.9.TVshowTitle', u'Warehouse 13')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.10.Title', u'At All Costs')
16:36:58 T:2808  NOTICE: ('##### SmartPlaylist1.10.TVshowTitle', u'Falling Skies')

Which skin are you running ?
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
Aeon Nox 4.0.9
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
  • 1
  • 31
  • 32
  • 33(current)
  • 34
  • 35
  • 53

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Random and last items smartplaylist script for Skins1