mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 06:35:57 -05:00
Hook up iTunes library scanner
This commit is contained in:
parent
3154416415
commit
6114c31c61
@ -276,11 +276,11 @@ process_playlist(char *file)
|
||||
if (ext)
|
||||
{
|
||||
if (strcmp(ext, ".m3u") == 0)
|
||||
{
|
||||
scan_m3u_playlist(file);
|
||||
|
||||
return;
|
||||
}
|
||||
#ifdef ITUNES
|
||||
else if (strcmp(ext, ".xml") == 0)
|
||||
scan_itunes_itml(file);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -347,7 +347,11 @@ process_file(char *file, time_t mtime, off_t size, int compilation, int flags)
|
||||
ext = strrchr(file, '.');
|
||||
if (ext)
|
||||
{
|
||||
if (strcmp(ext, ".m3u") == 0)
|
||||
if ((strcmp(ext, ".m3u") == 0)
|
||||
#ifdef ITUNES
|
||||
|| (strcmp(ext, ".xml") == 0)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
if (flags & F_SCAN_BULK)
|
||||
defer_playlist(file);
|
||||
|
@ -20,4 +20,9 @@ scan_url_file(char *file, struct media_file_info *mfi);
|
||||
void
|
||||
scan_m3u_playlist(char *file);
|
||||
|
||||
#ifdef ITUNES
|
||||
void
|
||||
scan_itunes_itml(char *file);
|
||||
#endif
|
||||
|
||||
#endif /* !__FILESCANNER_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user