Kodi Community Forum
recentlyadded and smartplaylists - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Music Support (https://forum.kodi.tv/forumdisplay.php?fid=263)
+--- Thread: recentlyadded and smartplaylists (/showthread.php?tid=304340)



recentlyadded and smartplaylists - Canuma - 2017-01-17

I have some Audiobooks in my collection, which i want separated from Music. However using Titan as Skin, I wanted to have the same options as i would have with just Music DB. I made some smartplaylists, However for music Albums, there seems not to be an option to get the list sorted by recently added albums. I came up with the idea to set a path filter, pointing to musicdb://recentlyaddedalbums and adding a Audiobook Genre Filter:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="albums">
    <name>Hörspiele zuletzt hinzugefügt</name>
    <match>all</match>
    <rule field="path" operator="contains">
        <value>musicdb://recentlyaddedalbums</value>
    </rule>
    <rule field="genre" operator="is">
        <value>Audiobook</value>
    </rule>
</smartplaylist>

However, this gives just an empty playlist. So i guess path has to be a real path? Is there another way to achive what i try to do? Maybe somehow daisychaining it with output from the library nodes? (Where i tried something similar, which unfortunatelly ignored every parameter i gave after the call to the recentlyadded folder)


RE: recentlyadded and smartplaylists - DaveBlake - 2017-01-17

Yes "path" in a rule has to be an actual path (not the Kodi virtual file system), and no you can not mix library nodes and rules.

Unfortunately "date added" is missing as a playlist sort order - will be added to v18

While you can not define it with that sort, you can sort an albums playlist by date added once the albums are on display.

You can also create a folder type custom node (instead of a filter type like the playlist), with
Code:
<?xml version='1.0' encoding='UTF-8'?>
<node type="folder">
<label>My Audiobooks</label>
<path>musicdb://albums/?genre=Audiobook</path>
</node>
This has the order of however you last viewed an "albums" type node, again can then be sorted.