mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-19 20:14:18 -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
|
||||
|
||||
#ifndef WIN32
|
||||
# include <stdint.h>
|
||||
# include <netinet/in.h>
|
||||
# include <sys/socket.h>
|
||||
#else
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user