Fix problem with line endings on m3u files

This commit is contained in:
Ron Pedde 2007-09-13 04:27:47 +00:00
parent 6c1f3ff05a
commit 5864fd8a15
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#endif
#ifndef WIN32
# include <stdint.h>
# include <netinet/in.h>
# include <sys/socket.h>
#else

View File

@ -474,7 +474,7 @@ int scan_static_playlist(char *path) {
return FALSE;
}
if(io_open(hfile,"file://%U",path)) {
if(io_open(hfile,"file://%U?ascii=1",path)) {
if(db_add_playlist(&perr,base_path,PL_STATICFILE,NULL,path,
0,&playlistid) != DB_E_SUCCESS) {
DPRINTF(E_LOG,L_SCAN,"Error adding m3u %s: %s\n",path,perr);