Don't ask for cover art if not asking for metadata too. Duh.

This commit is contained in:
Mike Brady
2021-12-06 18:14:23 +00:00
parent 0b21373c0e
commit 3b9f2e1c53
+5 -4
View File
@@ -1807,11 +1807,12 @@ int main(int argc, char **argv) {
#ifdef CONFIG_METADATA
// If we are asking for metadata, turn on the relevant bits
if (config.metadata_enabled != 0)
if (config.metadata_enabled != 0) {
config.airplay_features |= (1 << 17) | (1 << 16); // 16 is progress, 17 is text
// If we are asking for artwork, turn on the relevant bit
if (config.get_coverart)
config.airplay_features |= (1 << 15); // 15 is artwork
// If we are asking for artwork, turn on the relevant bit
if (config.get_coverart)
config.airplay_features |= (1 << 15); // 15 is artwork
}
#endif
debug(1, "Features: 0x%" PRIx64 ".", config.airplay_features);