mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-20 20:44:17 -04:00
Fix problem with line endings on m3u files
This commit is contained in:
parent
6c1f3ff05a
commit
5864fd8a15
1
src/io.h
1
src/io.h
@ -12,6 +12,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
# include <stdint.h>
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#else
|
#else
|
||||||
|
@ -474,7 +474,7 @@ int scan_static_playlist(char *path) {
|
|||||||
return FALSE;
|
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,
|
if(db_add_playlist(&perr,base_path,PL_STATICFILE,NULL,path,
|
||||||
0,&playlistid) != DB_E_SUCCESS) {
|
0,&playlistid) != DB_E_SUCCESS) {
|
||||||
DPRINTF(E_LOG,L_SCAN,"Error adding m3u %s: %s\n",path,perr);
|
DPRINTF(E_LOG,L_SCAN,"Error adding m3u %s: %s\n",path,perr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user