mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Remove support for iTunes XML playlist
No plans for OS X nor Windows in the near future, and those are most probably useless on other platforms.
This commit is contained in:
parent
831016bb05
commit
69d6acad37
@ -312,7 +312,6 @@ static void
|
||||
process_playlist(char *file)
|
||||
{
|
||||
char *ext;
|
||||
char *filename;
|
||||
|
||||
ext = strrchr(file, '.');
|
||||
if (ext)
|
||||
@ -321,19 +320,6 @@ process_playlist(char *file)
|
||||
{
|
||||
scan_m3u_playlist(file);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
filename = strrchr(file, '/');
|
||||
if (filename)
|
||||
{
|
||||
filename++;
|
||||
if ((strcmp(filename, "iTunes Music Library.xml") == 0)
|
||||
|| (strcmp(filename, "iTunes Library.xml") == 0))
|
||||
{
|
||||
scan_xml_playlist(file);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -396,8 +382,7 @@ process_file(char *file, time_t mtime, off_t size, int compilation, int bulk)
|
||||
ext = strrchr(file, '.');
|
||||
if (ext)
|
||||
{
|
||||
if ((strcmp(ext, ".m3u") == 0)
|
||||
|| (strcmp(ext, ".xml") == 0))
|
||||
if (strcmp(ext, ".m3u") == 0)
|
||||
{
|
||||
if (bulk)
|
||||
defer_playlist(file);
|
||||
|
@ -17,9 +17,6 @@ scan_get_ffmpeginfo(char *filename, struct media_file_info *mfi);
|
||||
int
|
||||
scan_get_urlinfo(char *filename, struct media_file_info *mfi);
|
||||
|
||||
int
|
||||
scan_xml_playlist(char *filename);
|
||||
|
||||
int
|
||||
scan_static_playlist(char *filename);
|
||||
|
||||
|
@ -74,7 +74,6 @@ extern int scan_get_urlinfo(char *filename, MP3FILE *pmp3);
|
||||
extern int scan_get_ffmpeginfo(char *filename, struct media_file_info *mfi);
|
||||
|
||||
/* playlist scanners */
|
||||
extern int scan_xml_playlist(char *filename);
|
||||
int scan_static_playlist(char *path);
|
||||
|
||||
|
||||
@ -142,14 +141,7 @@ void scan_process_playlistlist(void) {
|
||||
file = strrchr(pnext->path,PATHSEP) + 1;
|
||||
}
|
||||
|
||||
if((!strcasecmp(file,"iTunes Music Library.xml")) ||
|
||||
(!strcasecmp(file,"iTunes Library.xml"))) {
|
||||
if(conf_get_int("scanning","process_itunes",1)) {
|
||||
DPRINTF(E_INF,L_SCAN,"Scanning %s\n",pnext->path);
|
||||
scan_xml_playlist(pnext->path);
|
||||
DPRINTF(E_INF,L_SCAN,"Done Scanning %s\n",pnext->path);
|
||||
}
|
||||
} else if(!strcasecmp(ext,".m3u")) {
|
||||
if(!strcasecmp(ext,".m3u")) {
|
||||
if(conf_get_int("scanning","process_m3u",0)) {
|
||||
DPRINTF(E_INF,L_SCAN,"Scanning %s\n",pnext->path);
|
||||
scan_static_playlist(pnext->path);
|
||||
|
Loading…
Reference in New Issue
Block a user