mirror of
https://github.com/heavycaffeiner/ayaya.git
synced 2025-10-28 04:44:56 +09:00
Fix: handling some exception
This commit is contained in:
@@ -36,11 +36,14 @@ public class HitomiDTO {
|
||||
for (String tag : this.tags.get("tag")) tags += "tag:" + tag + ", ";
|
||||
}
|
||||
|
||||
if (tags.isEmpty()) return "N/A";
|
||||
|
||||
return tags.substring(0, tags.length() - 2);
|
||||
}
|
||||
|
||||
public String getArtistsAsString() {
|
||||
String artists = "";
|
||||
if (this.artists.isEmpty()) return "N/A";
|
||||
if (this.artists.size() == 1) return this.artists.get(0);
|
||||
|
||||
for (String artist : this.artists) artists += artist + ", ";
|
||||
|
||||
Reference in New Issue
Block a user