equal
deleted
inserted
replaced
36 #define di(x) ; |
36 #define di(x) ; |
37 #endif |
37 #endif |
38 |
38 |
39 const char *imagecache = "/var/cache/images/mp3"; |
39 const char *imagecache = "/var/cache/images/mp3"; |
40 const char *imageconv = "image_convert.sh"; |
40 const char *imageconv = "image_convert.sh"; |
|
41 const char *def_usr_img = 0; |
41 |
42 |
42 // image suffixes to search |
43 // image suffixes to search |
43 const char *img_suff[] = { "jpg","png","gif",0 }; |
44 const char *img_suff[] = { "jpg","png","gif",0 }; |
44 // exclude list for instant playlist creation |
45 // exclude list for instant playlist creation |
45 const char *excl_pl[] = { "*"PLAYLISTEXT,"*.jpg","*.gif","*.png",0 }; |
46 const char *excl_pl[] = { "*"PLAYLISTEXT,"*.jpg","*.gif","*.png",0 }; |
260 } |
261 } |
261 |
262 |
262 // default image in source basedir |
263 // default image in source basedir |
263 if((image=CheckImage("background"))) return true; |
264 if((image=CheckImage("background"))) return true; |
264 |
265 |
|
266 // default user supplied image |
|
267 if(def_usr_img && (image=strdup(def_usr_img))) return true; |
|
268 |
265 di(printf("image: no image for %s\n",obj->Path())) |
269 di(printf("image: no image for %s\n",obj->Path())) |
266 return false; |
270 return false; |
267 } |
271 } |
268 |
272 |
269 const char *cSong::CheckImage(const char *base) const |
273 const char *cSong::CheckImage(const char *base) const |