From 619ca9a19714991e8ce73775b41c9673e2e22fc6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 14 Nov 2016 18:13:36 +0800 Subject: [PATCH] Refactor MediaBindingBean --- source/net/filebot/format/MediaBindingBean.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index aac760e1..c4e14670 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -108,10 +108,8 @@ public class MediaBindingBean { return getEpisode().getSeriesName(); else if (infoObject instanceof Movie) return getMovie().getName(); - else if (infoObject instanceof AudioTrack && getAlbumArtist() != null) - return getAlbumArtist(); else if (infoObject instanceof AudioTrack) - return getArtist(); + return getAlbumArtist() != null ? getAlbumArtist() : getArtist(); else if (infoObject instanceof File) return FileUtilities.getName((File) infoObject);