mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[scan] Remove leftover iTunes #ifdefs
This commit is contained in:
parent
036100eecd
commit
8ba35dfa19
@ -338,10 +338,8 @@ file_type_get(const char *path) {
|
|||||||
if ((strcasecmp(ext, ".jpg") == 0) || (strcasecmp(ext, ".png") == 0))
|
if ((strcasecmp(ext, ".jpg") == 0) || (strcasecmp(ext, ".png") == 0))
|
||||||
return FILE_IGNORE;
|
return FILE_IGNORE;
|
||||||
|
|
||||||
#ifdef ITUNES
|
|
||||||
if (strcasecmp(ext, ".xml") == 0)
|
if (strcasecmp(ext, ".xml") == 0)
|
||||||
return FILE_ITUNES;
|
return FILE_ITUNES;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (strcasecmp(ext, ".remote") == 0)
|
if (strcasecmp(ext, ".remote") == 0)
|
||||||
return FILE_CTRL_REMOTE;
|
return FILE_CTRL_REMOTE;
|
||||||
@ -486,10 +484,8 @@ process_playlist(char *file, time_t mtime, int dir_id)
|
|||||||
ft = file_type_get(file);
|
ft = file_type_get(file);
|
||||||
if (ft == FILE_PLAYLIST)
|
if (ft == FILE_PLAYLIST)
|
||||||
scan_playlist(file, mtime, dir_id);
|
scan_playlist(file, mtime, dir_id);
|
||||||
#ifdef ITUNES
|
|
||||||
else if (ft == FILE_ITUNES)
|
else if (ft == FILE_ITUNES)
|
||||||
scan_itunes_itml(file, mtime, dir_id);
|
scan_itunes_itml(file, mtime, dir_id);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we found a control file we want to kickoff some action */
|
/* If we found a control file we want to kickoff some action */
|
||||||
|
@ -19,10 +19,8 @@ scan_playlist(const char *file, time_t mtime, int dir_id);
|
|||||||
void
|
void
|
||||||
scan_smartpl(const char *file, time_t mtime, int dir_id);
|
scan_smartpl(const char *file, time_t mtime, int dir_id);
|
||||||
|
|
||||||
#ifdef ITUNES
|
|
||||||
void
|
void
|
||||||
scan_itunes_itml(const char *file, time_t mtime, int dir_id);
|
scan_itunes_itml(const char *file, time_t mtime, int dir_id);
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------ Common utility functions used by the scanners ------------ */
|
/* ------------ Common utility functions used by the scanners ------------ */
|
||||||
|
Loading…
Reference in New Issue
Block a user