Output artist and track number in Song.toString()
This commit is contained in:
parent
3ee4f8fde5
commit
03ffc9d994
|
@ -103,10 +103,17 @@ public class Song
|
|||
@Override
|
||||
public String toString()
|
||||
{
|
||||
String ret = "";
|
||||
if (artist != null && !artist.isEmpty())
|
||||
ret += artist + " - ";
|
||||
|
||||
if (title != null && !title.isEmpty())
|
||||
return title;
|
||||
else
|
||||
return "track " + number;
|
||||
ret += title;
|
||||
|
||||
if (ret.isEmpty())
|
||||
ret = "track " + number;
|
||||
|
||||
return "[" + number + "] " + ret;
|
||||
// return url.toExternalForm();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue