示例#1
0
static void
process_playlist(char *file, time_t mtime)
{
  enum file_type ft;

  ft = file_type_get(file);
  if (ft == FILE_PLAYLIST)
    scan_playlist(file, mtime);
#ifdef ITUNES
  else if (ft == FILE_ITUNES)
    scan_itunes_itml(file);
#endif
}
示例#2
0
static void
process_playlist(char *file)
{
  char *ext;

  ext = strrchr(file, '.');
  if (ext)
    {
      if (strcmp(ext, ".m3u") == 0)
	scan_m3u_playlist(file);
#ifdef ITUNES
      else if (strcmp(ext, ".xml") == 0)
	scan_itunes_itml(file);
#endif
    }
}