mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-31 14:43:36 +00:00
Fix HTML info decoding
This commit is contained in:
@@ -17,56 +17,32 @@ import java.util.List;
|
||||
@Entity(tableName = "artist")
|
||||
public class Artist implements Parcelable {
|
||||
private static final String TAG = "Artist";
|
||||
@Ignore
|
||||
|
||||
public List<Genre> genres;
|
||||
@Ignore
|
||||
public List<Album> albums;
|
||||
@Ignore
|
||||
public List<Song> songs;
|
||||
|
||||
@NonNull
|
||||
@PrimaryKey
|
||||
@ColumnInfo(name = "id")
|
||||
public String id;
|
||||
|
||||
@ColumnInfo(name = "name")
|
||||
public String name;
|
||||
|
||||
@ColumnInfo(name = "primary")
|
||||
public String primary;
|
||||
|
||||
@ColumnInfo(name = "primary_blurHash")
|
||||
public String primaryBlurHash;
|
||||
|
||||
@ColumnInfo(name = "backdrop")
|
||||
public String backdrop;
|
||||
|
||||
@ColumnInfo(name = "backdrop_blurHash")
|
||||
public String backdropBlurHash;
|
||||
|
||||
public Artist(@NonNull String id, String name, String primary, String primaryBlurHash, String backdrop, String backdropBlurHash) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.primary = primary;
|
||||
this.primaryBlurHash = primaryBlurHash;
|
||||
this.backdrop = backdrop;
|
||||
this.backdropBlurHash = backdropBlurHash;
|
||||
}
|
||||
public int albumCount;
|
||||
|
||||
public Artist(ArtistID3 artistID3) {
|
||||
this.id = artistID3.getId();
|
||||
this.name = artistID3.getName();
|
||||
this.primary = artistID3.getCoverArtId() != null ? artistID3.getCoverArtId() : artistID3.getId();
|
||||
this.backdrop = artistID3.getCoverArtId();
|
||||
this.albumCount = artistID3.getAlbumCount();
|
||||
}
|
||||
|
||||
@Ignore
|
||||
public Artist(String id, String name) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -115,6 +91,14 @@ public class Artist implements Parcelable {
|
||||
this.backdropBlurHash = backdropBlurHash;
|
||||
}
|
||||
|
||||
public int getAlbumCount() {
|
||||
return albumCount;
|
||||
}
|
||||
|
||||
public void setAlbumCount(int albumCount) {
|
||||
this.albumCount = albumCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
|
||||
Reference in New Issue
Block a user