mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 22:10:17 +00:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8119530bef | ||
|
|
09d20efba6 | ||
|
|
bcd03fc7ce | ||
|
|
d70fae0719 | ||
|
|
9e3516aacb | ||
|
|
7b7d1e7348 | ||
|
|
dccbfcf546 |
@@ -74,7 +74,9 @@ public class Album {
|
||||
|
||||
public void removeArtist(Artist artist) {
|
||||
albumArtists.removeIf(aa ->
|
||||
aa.getArtist() != null && aa.getArtist().getId().equals(artist.getId())
|
||||
aa.getArtist() != null &&
|
||||
aa.getArtist().getId() != null &&
|
||||
aa.getArtist().getId().equals(artist.getId())
|
||||
);
|
||||
}
|
||||
|
||||
@@ -96,8 +98,13 @@ public class Album {
|
||||
}
|
||||
|
||||
public void removeGenre(Genre genre) {
|
||||
if (genre == null) {
|
||||
return;
|
||||
}
|
||||
albumGenres.removeIf(ag ->
|
||||
ag.getGenre() != null && ag.getGenre().getId().equals(genre.getId())
|
||||
ag.getGenre() != null &&
|
||||
ag.getGenre().getId() != null &&
|
||||
ag.getGenre().getId().equals(genre.getId())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user