-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,14 +58,13 @@ sub loadMyClassicalGenreMap { | |
} | ||
|
||
sub isMyClassicalGenre { | ||
my ($class, $genres, $sep) = @_; | ||
|
||
loadMyClassicalGenreMap() if !$myClassicalGenreMap; | ||
my $class = shift; | ||
my $genres = shift; | ||
my $sep = shift; | ||
foreach ( Slim::Music::Info::splitTag($genres, $sep) ) { | ||
return 1 if %$myClassicalGenreMap{uc($_)} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
michaelherger
Author
Member
|
||
} | ||
return 0; | ||
|
||
return grep { | ||
$myClassicalGenreMap->{uc($_)} | ||
} Slim::Music::Info::splitTag($genres, $sep) ? 1 : 0; | ||
} | ||
|
||
sub myClassicalGenreIds { | ||
|
2 comments
on commit d2c4a6a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darrell-k what was the old version supposed to do? Some installations failed on the %$myClasscialGenreMap{uc($_)}
. The %$
or whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed in c860f34
What I was trying to do here was simply check that key uc($_) exists in the hash.