Skip to content

Commit

Permalink
Don't overwrite explicit flag once it has been set.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed May 1, 2024
1 parent f3e81fa commit 7e3b8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion API/Async.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<description>PLUGIN_TIDAL_DESC</description>
<creator>philippe_44, Michael Herger</creator>
<id>16da8158-263f-4347-8125-184372ea5610</id>
<version>1.4.3</version>
<version>1.4.4</version>
<module>Plugins::TIDAL::Plugin</module>
<importmodule>Plugins::TIDAL::Importer</importmodule>
<optionsURL>plugins/TIDAL/settings.html</optionsURL>
Expand Down

0 comments on commit 7e3b8a9

Please sign in to comment.