diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-14 11:43:07 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-14 11:43:07 -0700 |
commit | d818fe58d1324936784670b72c0de8e742d46aed (patch) | |
tree | f611e333703430cdde29bcd3c0df9f3cfac4dc40 /src | |
parent | 39d06f32e465e53dbf8d07dc5378ef46c4d43478 (diff) | |
download | dsub-d818fe58d1324936784670b72c0de8e742d46aed.tar.gz dsub-d818fe58d1324936784670b72c0de8e742d46aed.tar.bz2 dsub-d818fe58d1324936784670b72c0de8e742d46aed.zip |
Fix video podcasts not showing up as podcasts
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/view/SongView.java | 7 |
1 files changed, 4 insertions, 3 deletions
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; |