(2014-09-01, 23:01)Montellese Wrote: (2014-09-01, 18:56)m.savazzi Wrote: There is another issue I discovered with CURRENT db structure. The smartplaylist does not work you move the data from MySQL to SQLite.
It appears the query return 0 every time... probably due to Path format.
Can you be more specific? We use smartplaylist with both SQLite and MySQL databases and apart from some RDBMS-specific issues in the SQL support I haven't heard of anything fundamentally wrong.
Here is what I did:
1) I have 2 test library with NFO files. To make it simple those libraries are under the same Mount on Kodi v:\ -> shared folder.
Library 1: v:\lib1
Library 2: v:\lib2
2) configure advancedsettings.xml to point to the correct DB (put in Mysql for the db or cancel the lines to work with sqlite). Let's start with MySQL
3) add sources to library and specify as scraper the NFO
4) import all content - update library
5) create a smartPlaylist:
Library 1:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name>Cartoni</name>
<match>all</match>
<rule field="path" operator="startswith">
<value>V:\\Lib1\\</value>
</rule>
<order direction="ascending">sorttitle</order>
</smartplaylist>
Library 2:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name>Toons</name>
<match>all</match>
<rule field="path" operator="startswith">
<value>V:\\Lib2\\</value>
</rule>
<order direction="ascending">sorttitle</order>
</smartplaylist>
6) If you navigate to the playlist you'll see the selection of the content. So is working
NOW:
7) configure advancedsettings.xml to point to the other DB. So in my case delete everything so that sqllite DB is created
8) First BUG: library configuration is not held so you need to add (again) sources to library and specify as scraper the NFO
9) import all content - update library
10)
BUG navigate the one of the two playlists: EMPTY
This happened to me multiple times. is really annoying.
Not that Playlists ARE shown under Video/playlist menu but they do not work.
Code:
19:40:07 T:2732 DEBUG: Testing path: [000] special://profile/playlists/video/Lib1.xsp
19:40:07 T:2732 DEBUG: Testing path: [001] special://profile/playlists/video/Lib2.xsp
here is the query:
Code:
19:40:04 T:2732 DEBUG: CVideoDatabase::RunQuery took 29 ms for 0 items query: select * from movieview WHERE ((movieview.strPath LIKE 'V:\\Lib1\\%'))
and this is correct as strPath is like: V:\Lib1\Movie1\
so the correct query should be
Code:
select * from movieview WHERE ((movieview.strPath LIKE 'V:\Lib1\%'))