return res;
}
+static int mm_no_attributes_set_parser(const char *arg, __a_unused void **ignored)
+{
+ if (arg && *arg)
+ PARA_WARNING_LOG("ignored junk at eol: %s\n", arg);
+ return 1;
+}
+
+static int mm_no_attributes_set_score_function(__a_unused const char *path,
+ const struct afs_info *afsi,
+ __a_unused const struct audio_format_info *afhi,
+ __a_unused const void *data)
+{
+ if (!strcmp(path, "/home/mp3/checked/dvd_08/cd_52/Sade__Paradise.mp3"))
+ PARA_NOTICE_LOG("%s: %llu\n", path, afsi->attributes);
+ if (!afsi->attributes)
+ return 100;
+ return -100;
+}
+
static int mm_played_rarely_score_function(__a_unused const char *path,
const struct afs_info *afsi,
__a_unused const struct audio_format_info *afhi,
static int mm_played_rarely_parser(const char *arg, __a_unused void **ignored)
{
- if (*arg)
+ if (arg && *arg)
PARA_WARNING_LOG("ignored junk at eol: %s\n", arg);
return 1;
}
}
static const struct mood_method mood_methods[] = {
+{
+ .parser = mm_no_attributes_set_parser,
+ .score_function = mm_no_attributes_set_score_function,
+ .name = "no_attributes_set"
+},
{
.parser = mm_played_rarely_parser,
.score_function = mm_played_rarely_score_function,