change pl_type for plain and special playlists and upgrade db to v18

This commit is contained in:
chme
2015-04-21 19:12:54 +02:00
parent 6dc4d53ed9
commit 9f6afe0607
5 changed files with 65 additions and 28 deletions

View File

@@ -152,6 +152,8 @@ scan_playlist(char *file, time_t mtime)
memset(pli, 0, sizeof(struct playlist_info));
pli->type = PL_PLAIN;
/* Get only the basename, to be used as the playlist title */
ptr = strrchr(filename, '.');
if (ptr)