From 7e3b8a97c26f3e370758f77f3ea1e777fb5eb3eb Mon Sep 17 00:00:00 2001 From: Michael Herger Date: Wed, 1 May 2024 07:18:05 +0200 Subject: [PATCH] Don't overwrite explicit flag once it has been set. --- API/Async.pm | 3 ++- install.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/API/Async.pm b/API/Async.pm index c634674..19c4b9f 100644 --- a/API/Async.pm +++ b/API/Async.pm @@ -178,7 +178,8 @@ sub _filterAlbums { my $item = $_; my $fingerprint = join(':', $item->{artist}->{id}, $item->{title}, $item->{numberOfTracks}, ($wantsBoth ? $item->{explicit} : undef)); - $nonExplicit{$fingerprint} = !($explicit{$fingerprint} = $_->{explicit}); + $explicit{$fingerprint} ||= $_->{explicit}; + $nonExplicit{$fingerprint} ||= !$_->{explicit}; $item->{fingerprint} = $fingerprint; $item; diff --git a/install.xml b/install.xml index 7df4fd2..276d261 100644 --- a/install.xml +++ b/install.xml @@ -4,7 +4,7 @@ PLUGIN_TIDAL_DESC philippe_44, Michael Herger 16da8158-263f-4347-8125-184372ea5610 - 1.4.3 + 1.4.4 Plugins::TIDAL::Plugin Plugins::TIDAL::Importer plugins/TIDAL/settings.html