1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-10 21:38:04 -05:00

Refactor MediaBindingBean

This commit is contained in:
Reinhard Pointner 2016-11-14 18:13:36 +08:00
parent 051617fafe
commit 619ca9a197

View File

@ -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);