Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Smart Playlists
#1
Is there some changes made between Krypton and Leia about smart playlists ?
I used to have a shortcut on home menu for random movies, but since i've migrated to Leia, it doesn't work anymore.
Tried with multiple skins, and on Windows and Android TV aswell.

Here is my playlist content :
xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>OneRandomMovie</name>
    <match>all</match>
    <rule field="playcount" operator="is">
        <value>0</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>nfs://192.168.1.220/volume2/Mediatheque/Films</value>
    </rule>
    <limit>1</limit>
    <order direction="ascending">random</order>
</smartplaylist>

Maybe someone will know...

What bugs me is that i can open my playlist from playlists menu, and it always return a random movie as it should, but i can't launch it directly from category, as a shortcut...

Image

And here is a log :
xml:
21:07:07.636 T:14024   DEBUG: CAddonDatabase::GetAddons took 62 ms
21:07:07.644 T:14024   DEBUG: CPlayerCoreFactory::GetPlayers: added {0} players
21:07:07.645 T:14024  NOTICE: VideoPlayer::OpenFile: special://profile/playlists/video/OneRandomMovie.xsp
21:07:07.645 T:14024   DEBUG: CApplication::OnPlayBackStarted: CApplication::OnPlayBackStarted
21:07:07.645 T:8300   DEBUG: Thread VideoPlayer start, auto delete: false
21:07:07.645 T:8300  NOTICE: Creating InputStream
21:07:07.647 T:8300    INFO: CUtil::ScanPathsForAssociatedItems: found associated file special://profile/playlists/video/OneRandomMovie_Serveur.xsp
21:07:07.648 T:8300   DEBUG: CFileCache::Open - opening <profile/playlists/video/OneRandomMovie.xsp> using cache
21:07:07.648 T:8300   DEBUG: CFileCache::Open - opening <profile/playlists/video/OneRandomMovie_Serveur.xsp> using cache
21:07:07.649 T:1440   DEBUG: Thread FileCache start, auto delete: false
21:07:07.649 T:1440    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
21:07:07.650 T:8300   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
21:07:07.650 T:5660   DEBUG: Thread FileCache start, auto delete: false
21:07:07.650 T:5660    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
21:07:07.652 T:8300   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 0 ms)
21:07:07.652 T:8300  NOTICE: Creating Demuxer
21:07:07.653 T:9280   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
21:07:07.655 T:9280   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
21:07:07.661 T:8300   ERROR: CDVDDemuxFFmpeg::Open - error probing input format, special://profile/playlists/video/OneRandomMovie.xsp
21:07:07.662 T:1440   DEBUG: Thread FileCache 1440 terminating
21:07:07.665 T:8300   ERROR: CDVDDemuxFFmpeg::Open - error probing input format, special://profile/playlists/video/OneRandomMovie_Serveur.xsp
21:07:07.665 T:5660   DEBUG: Thread FileCache 5660 terminating
21:07:07.666 T:8300   ERROR: CVideoPlayer::OpenDemuxStream - Error creating demuxer
21:07:07.666 T:8300  NOTICE: CVideoPlayer::OnExit()
21:07:07.666 T:8300   DEBUG: Thread VideoPlayer 8300 terminating
21:07:07.693 T:104   DEBUG: Loading settings for special://profile/playlists/video/OneRandomMovie.xsp
21:07:07.706 T:9888   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Player.OnPlay  - data: {"item":{"title":"","type":"movie"},"player":{"playerid":0,"speed":1}}
21:07:07.709 T:14024   DEBUG: ------ Window Init (DialogConfirm.xml) ------
21:07:07.723 T:7624   DEBUG: Skin Helper Widgets --> Kodi_Monitor: sender xbmc - method: Player.OnPlay  - data: {"item":{"title":"","type":"movie"},"player":{"playerid":0,"speed":1}}
21:07:07.759 T:4644   DEBUG: DatabaseUtils::GetSortFieldList: unknown field 31

I precise i have chose to launch playlist rather to open it.
Reply
#2
Check that your sources.xml paths match those in the smartplaylist....

Also try a lenient parameter like "contains" and change the path to "/Mediatheque/Films"
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#3
Sources.xml paths are OK, it's fully working in Krypton.
Also, i've just tried to change with "contains" parameter, but still not working.
Reply
#4
No one else encountered this behavior ?
Any workaround ?
Reply
#5
There is no way that i'm the only one with tha problem, come on !
Reply
#6
Your issue is unique to your system because it's almost guaranteed to be path related.

I believe I gave you all the information needed in order to debug the issue on your end.  Smile
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#7
(2017-12-07, 17:31)repulse Wrote: Is there some changes made between Krypton and Leia about smart playlists ?
I used to have a shortcut on home menu for random movies, but since i've migrated to Leia, it doesn't work anymore.
Tried with multiple skins, and on Windows and Android TV aswell.

I precise i have chose to launch playlist rather to open it.

What's your shortcut?
Reply
#8
(2017-12-15, 23:14)Lunatixz Wrote: Your issue is unique to your system because it's almost guaranteed to be path related.

I believe I gave you all the information needed in order to debug the issue on your end.  Smile

How can it be path related as it's working on Krypton (Android and Windows 10), but not in Leia, just after update. Fresh install is the same.
Also, @Guilouz can confirm as he tested too. I first though that it was a skin issue but it's not.

(2017-12-16, 00:14)trogggy Wrote:
(2017-12-07, 17:31)repulse Wrote: Is there some changes made between Krypton and Leia about smart playlists ?
I used to have a shortcut on home menu for random movies, but since i've migrated to Leia, it doesn't work anymore.
Tried with multiple skins, and on Windows and Android TV aswell.

I precise i have chose to launch playlist rather to open it.

What's your shortcut?

My shortcut links the playlist in first post.
Reply
#9
(2017-12-16, 03:16)repulse Wrote:
(2017-12-16, 00:14)trogggy Wrote: What's your shortcut?

My shortcut links the playlist in first post.
You have a working smart playlist.
You're trying to run the playlist content directly (rather than open the playlist to view the contewnt).
What I'm asking is how you're doing that...
How did you make the shortcut?
Reply
#10
(2017-12-16, 10:45)trogggy Wrote:
(2017-12-16, 03:16)repulse Wrote:
(2017-12-16, 00:14)trogggy Wrote: What's your shortcut?

My shortcut links the playlist in first post.
You have a working smart playlist.
You're trying to run the playlist content directly (rather than open the playlist to view the contewnt).
What I'm asking is how you're doing that...
How did you make the shortcut?

I'm trying to do it using skin shortcut addon, any other way ?
Reply
#11
(2017-12-16, 11:51)repulse Wrote:
(2017-12-16, 10:45)trogggy Wrote:
(2017-12-16, 03:16)repulse Wrote: My shortcut links the playlist in first post.
You have a working smart playlist.
You're trying to run the playlist content directly (rather than open the playlist to view the contewnt).
What I'm asking is how you're doing that...
How did you make the shortcut?    

I'm trying to do it using skin shortcut addon, any other way ?    
 I don't use skin shortcuts, but it's not doing anything you can't do manually.
The first thing I would do is to find the command skin shortcuts has set. I'd imagine it's using 'PlayMedia' - maybe something like...
Quote:PlayMedia(special://profile/playlists/video/OneRandomMovie.xsp)

If you don't know what it (skin shortcuts) is trying to do you can't troubleshoot.
But if it is a skin shortcuts issue then presumably there's a help thread for that script.
Reply
#12
(2017-12-16, 12:00)trogggy Wrote:
(2017-12-16, 11:51)repulse Wrote:
(2017-12-16, 10:45)trogggy Wrote: You have a working smart playlist.
You're trying to run the playlist content directly (rather than open the playlist to view the contewnt).
What I'm asking is how you're doing that...
How did you make the shortcut?    

I'm trying to do it using skin shortcut addon, any other way ?     
 I don't use skin shortcuts, but it's not doing anything you can't do manually.
The first thing I would do is to find the command skin shortcuts has set. I'd imagine it's using 'PlayMedia' - maybe something like...
Quote:PlayMedia(special://profile/playlists/video/OneRandomMovie.xsp)

If you don't know what it (skin shortcuts) is trying to do you can't troubleshoot.
But if it is a skin shortcuts issue then presumably there's a help thread for that script. 
 Yup, it's a PlayMedia command.
I also asked on Skin Shortcut thread, but no one wants or cannot answer.
Reply
#13
(2017-12-16, 12:11)repulse Wrote:  Yup, it's a PlayMedia command.
Is it a secretHuh
Reply
#14
(2017-12-16, 12:31)trogggy Wrote:
(2017-12-16, 12:11)repulse Wrote:  Yup, it's a PlayMedia command.
Is it a secretHuh 
Haha nope sorry !
You guessed it : PlayMedia(special://profile/playlists/video/OneRandomMovie.xsp
Reply
#15
(2017-12-16, 13:00)repulse Wrote:
(2017-12-16, 12:31)trogggy Wrote:
(2017-12-16, 12:11)repulse Wrote:  Yup, it's a PlayMedia command.
Is it a secretHuh  
Haha nope sorry !
You guessed it : PlayMedia(special://profile/playlists/video/OneRandomMovie.xsp 
I've duplicated the issue with one of my playlists, so it looks like there is a behaviour change.  You can file a bug report by using the 'bug tracker' link at the top of this page.
Reply

Logout Mark Read Team Forum Stats Members Help
Smart Playlists0