mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e3516aacb | ||
|
|
7b7d1e7348 |
@@ -74,7 +74,9 @@ public class Album {
|
|||||||
|
|
||||||
public void removeArtist(Artist artist) {
|
public void removeArtist(Artist artist) {
|
||||||
albumArtists.removeIf(aa ->
|
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,9 +98,9 @@ public class Album {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void removeGenre(Genre genre) {
|
public void removeGenre(Genre genre) {
|
||||||
albumGenres.removeIf(ag ->
|
ag.getGenre() != null &&
|
||||||
ag.getGenre() != null && ag.getGenre().getId().equals(genre.getId())
|
ag.getGenre().getId() != null &&
|
||||||
);
|
ag.getGenre().getId().equals(genre.getId())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Método conveniente para pegar só os gêneros
|
// Método conveniente para pegar só os gêneros
|
||||||
@@ -219,4 +221,4 @@ public class Album {
|
|||||||
", year=" + year +
|
", year=" + year +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user