Fix {plex} for Music

@see https://www.filebot.net/forums/viewtopic.php?f=6&t=4465
This commit is contained in:
Reinhard Pointner 2016-12-06 00:12:52 +09:00
parent 779e1a4844
commit 55aa87ffa1
1 changed files with 3 additions and 3 deletions

View File

@ -60,14 +60,14 @@ public enum NamingStandard {
public String getPath(AudioTrack a) { public String getPath(AudioTrack a) {
// Music // Music
String name = String.join(" - ", a.getArtist(), first(a.getTrackTitle(), a.getTitle())); String name = first(a.getTrackTitle(), a.getTitle());
// prepend track number // prepend track number
if (a.getTrack() != null) { if (a.getTrack() != null) {
name = String.format("%02d. %s", a.getTrack(), name); name = String.format("%02d - %s", a.getTrack(), name);
} }
return path(getMusicFolder(), first(a.getAlbumArtist(), a.getArtist()), a.getAlbum(), name); return path(getMusicFolder(), a.getArtist(), a.getAlbum(), name);
} }
private static String path(String... name) { private static String path(String... name) {