1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 00:15:02 -04:00

Improved single/multi episode title default format {t}

This commit is contained in:
Reinhard Pointner 2016-08-23 13:07:43 +08:00
parent aab1c33859
commit 8464020de4

View File

@ -174,10 +174,6 @@ public class MediaBindingBean {
@Define("t")
public String getTitle() {
if (infoObject instanceof AudioTrack) {
return getMusic().getTrackTitle() != null ? getMusic().getTrackTitle() : getMusic().getTitle();
}
if (infoObject instanceof Episode) {
// support multi-episode title formatting
String t = infoObject instanceof MultiEpisode ? EpisodeFormat.SeasonEpisode.formatMultiTitle(getEpisodes()) : getEpisode().getTitle();
@ -186,6 +182,10 @@ public class MediaBindingBean {
return truncateText(t, NamingStandard.TITLE_MAX_LENGTH);
}
if (infoObject instanceof AudioTrack) {
return getMusic().getTrackTitle() != null ? getMusic().getTrackTitle() : getMusic().getTitle();
}
return null;
}