command: try 'icy-title' metadata for media-title as well

This commit is contained in:
Alessandro Ghedini committed 2014-10-27 16:21:50 +01:00
1 parent fcc360ccad
commit c18cf4394d
1 file changed
+3
+3
View File
@@ -373,6 +373,9 @@ static int mp_property_media_title(void *ctx, struct m_property *prop,
name = mp_tags_get_str(mpctx->master_demuxer->metadata, "title");
if (name && name[0])
return m_property_strdup_ro(action, arg, name);
name = mp_tags_get_str(mpctx->master_demuxer->metadata, "icy-title");
if (name && name[0])
return m_property_strdup_ro(action, arg, name);
}
return mp_property_filename(ctx, prop, action, arg);
}