2022-04-20, 10:46
Help to get "own" ordering in a movie smart playlist using rule field="path" once for every movie in the list
I'm using Kodi 19.4 stable in Android.
What I'm trying to do?
I'm using a bash script (could be a nice start-idea for a Kodi-Plugin) which:
-get some movie list from a website (imdb-official, imdb-userlists, icheckmovies, goodmovieslist etc)
-looks in my movie-library if the movies from list are available
-build a xsp smart-list with all available movies
-buld a text file with missing movies from the list
-copy the xsp file to Kodi playlist folder
Sometimes the ordering in such lists is not important but sometimes it really make sense to have/keep the ordering from the original list from web (like "IMDb's Top 250" or "Rotten Tomatoes's Top 100 Movies of All Time").
Here are some examples i have generated:
-using "one" match and "more" rules
-using match "all" and "one" rule with multiple path
But I can't get the order from the list to be displayed. Every time this will be overwritten by the ordering from the Skin (mostly title->ascending)
I have tried also to add one of the xmls lines to my list:
All other ordering rules from wiki (title, premiered, director etc.) are working fine when used in the xsp file in a line like:
I know that you can get your own order in *.m3u or *.pls playlist but such lists are not really nice to browse ;-)
Any idea how to get this? Is that actually possible in Kodi? Or is not implemented yet? Could be that implemented?
Thank You in advance
I'm using Kodi 19.4 stable in Android.
What I'm trying to do?
I'm using a bash script (could be a nice start-idea for a Kodi-Plugin) which:
-get some movie list from a website (imdb-official, imdb-userlists, icheckmovies, goodmovieslist etc)
-looks in my movie-library if the movies from list are available
-build a xsp smart-list with all available movies
-buld a text file with missing movies from the list
-copy the xsp file to Kodi playlist folder
Sometimes the ordering in such lists is not important but sometimes it really make sense to have/keep the ordering from the original list from web (like "IMDb's Top 250" or "Rotten Tomatoes's Top 100 Movies of All Time").
Here are some examples i have generated:
-using "one" match and "more" rules
xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name>IMDb's Top 250</name>
<!-- The IMDb top 250 is probably the most well-known movie list in the world. It
has earned this reputation through the fact that it has been composed by
aggregating the votes of many normal moviegoers. In other words, this is a list
by and for the people and not some elite movie-critics list. -->
<match>one</match>
<rule field="path" operator="is">
<value>nfs://192.168.178.100/export/MOVIE1/The.Shawshank.Redemption[1994]/</value>
</rule>
<rule field="path" operator="is">
<value>nfs://192.168.178.100/export/MOVIE0/The.Godfather[1972]/</value>
</rule>
<rule field="path" operator="is">
<value>nfs://192.168.178.100/export/MOVIE0/The.Godfather.Part.II[1974]/</value>
</rule>
<rule field="path" operator="is">
<value>nfs://192.168.178.100/export/MOVIE0/The.Dark.Knight[2008]/</value>
</rule>
<rule field="path" operator="is">
<value>nfs://192.168.178.100/export/MOVIE0/12.Angry.Men[1957]/</value>
</rule>
<rule field="path" operator="is">
<value>nfs://192.168.178.100/export/MOVIE0/Schindlers.List[1993]/</value>
</rule>
</smartplaylist>
-using match "all" and "one" rule with multiple path
When browsing the list i want to have the order in which movies appear in the list.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name>IMDb's Top 250 ns2</name>
<!-- The IMDb top 250 is probably the most well-known movie list in the world. It
has earned this reputation through the fact that it has been composed by
aggregating the votes of many normal moviegoers. In other words, this is a list
by and for the people and not some elite movie-critics list. -->
<match>all</match>
<rule field="path" operator="is">
<value>nfs://192.168.178.100/export/MOVIE1/The.Shawshank.Redemption[1994]/</value>
<value>nfs://192.168.178.100/export/MOVIE0/The.Godfather[1972]/</value>
<value>nfs://192.168.178.100/export/MOVIE0/The.Godfather.Part.II[1974]/</value>
<value>nfs://192.168.178.100/export/MOVIE0/The.Dark.Knight[2008]/</value>
<value>nfs://192.168.178.100/export/MOVIE0/12.Angry.Men[1957]/</value>
<value>nfs://192.168.178.100/export/MOVIE0/Schindlers.List[1993]/</value>
</rule>
</smartplaylist>
But I can't get the order from the list to be displayed. Every time this will be overwritten by the ordering from the Skin (mostly title->ascending)
I have tried also to add one of the xmls lines to my list:
None of this works. I can't get "my order" in the list.xml:
<order>playlist</order>
<order>ignore</order>
<order>none</order>
All other ordering rules from wiki (title, premiered, director etc.) are working fine when used in the xsp file in a line like:
xml:<order direction="ascending">title</order>->
I know that you can get your own order in *.m3u or *.pls playlist but such lists are not really nice to browse ;-)
Any idea how to get this? Is that actually possible in Kodi? Or is not implemented yet? Could be that implemented?
Thank You in advance