Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2011-09-04 08:07:36 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2011-09-04 08:07:36 +0400
commit44f26df01df3ad565be9b9aa7df918f4b2bbeb5e (patch)
treec3d0e850529de086a8d6af39b441818af21729e5
parent4ce6152fbcb6cd134b377f942117044c894f3ebc (diff)
* Fixup last checkin.
-rw-r--r--playlist.c2
-rw-r--r--scanner.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index 436290d..3feb694 100644
--- a/playlist.c
+++ b/playlist.c
@@ -147,7 +147,7 @@ fill_playlists()
if( last_dir )
{
fname = basename(plist.path);
- detailID = sql_get_int_field(db, "SELECT ID from DETAILS where PATH = '%s/%s'", last_dir, fname);
+ detailID = sql_get_int_field(db, "SELECT ID from DETAILS where PATH = '%q/%q'", last_dir, fname);
if( detailID <= 0 )
{
sqlite3_free(last_dir);
diff --git a/scanner.c b/scanner.c
index ab0e01e..5b4581b 100644
--- a/scanner.c
+++ b/scanner.c
@@ -829,9 +829,13 @@ start_scanner()
sql_exec(db, "create INDEX IDX_SEARCH_OPT ON OBJECTS(OBJECT_ID, CLASS, DETAIL_ID);");
if( GETFLAG(NO_PLAYLIST_MASK) )
+ {
DPRINTF(E_WARN, L_SCANNER, "Playlist creation disabled\n");
+ }
else
+ {
fill_playlists();
+ }
DPRINTF(E_DEBUG, L_SCANNER, "Initial file scan completed\n", DB_VERSION);
//JM: Set up a db version number, so we know if we need to rebuild due to a new structure.