mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Default to case-sensitive fs
This commit is contained in:
parent
5e6575a153
commit
7c34c4ceee
@ -137,7 +137,7 @@ char *_db_proper_path(char *path) {
|
|||||||
DPRINTF(E_FATAL,L_DB,"malloc: _db_proper_path\n");
|
DPRINTF(E_FATAL,L_DB,"malloc: _db_proper_path\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(conf_get_int("scanning","case_sensitive",0) == 0) {
|
if(conf_get_int("scanning","case_sensitive",1) == 0) {
|
||||||
path_ptr = new_path;
|
path_ptr = new_path;
|
||||||
while(*path_ptr) {
|
while(*path_ptr) {
|
||||||
*path_ptr = toupper(*path_ptr);
|
*path_ptr = toupper(*path_ptr);
|
||||||
@ -1912,7 +1912,7 @@ MP3FILE *db_sql_fetch_path(char **pe, char *path, int index) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* not very portable, but works for sqlite */
|
/* not very portable, but works for sqlite */
|
||||||
if(conf_get_int("scanning","case_sensitive",0)) {
|
if(conf_get_int("scanning","case_sensitive",1)) {
|
||||||
query="select * from songs where path='%q' and idx=%d";
|
query="select * from songs where path='%q' and idx=%d";
|
||||||
} else {
|
} else {
|
||||||
query="select * from songs where path=upper('%q') and idx=%d";
|
query="select * from songs where path=upper('%q') and idx=%d";
|
||||||
|
Loading…
Reference in New Issue
Block a user