From d818fe58d1324936784670b72c0de8e742d46aed Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 14 Aug 2014 11:43:07 -0700 Subject: Fix video podcasts not showing up as podcasts --- src/github/daneren2005/dsub/view/SongView.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/view/SongView.java b/src/github/daneren2005/dsub/view/SongView.java index e6156ceb..55eff6f1 100644 --- a/src/github/daneren2005/dsub/view/SongView.java +++ b/src/github/daneren2005/dsub/view/SongView.java @@ -90,8 +90,9 @@ public class SongView extends UpdateView implements Checkable { StringBuilder artist = new StringBuilder(40); - if(!song.isVideo()) { - if(song instanceof PodcastEpisode) { + boolean isPodcast = song instanceof PodcastEpisode; + if(!song.isVideo() || isPodcast) { + if(isPodcast) { String date = ((PodcastEpisode)song).getDate(); if(date != null) { int index = date.indexOf(" "); @@ -102,7 +103,7 @@ public class SongView extends UpdateView implements Checkable { artist.append(song.getArtist()); } - if(song instanceof PodcastEpisode) { + if(isPodcast) { String status = ((PodcastEpisode) song).getStatus(); int statusRes = -1; -- cgit v1.2.3