diff --git a/hammond-gtk/src/widgets/episode.rs b/hammond-gtk/src/widgets/episode.rs index 623ab2f..51f7677 100644 --- a/hammond-gtk/src/widgets/episode.rs +++ b/hammond-gtk/src/widgets/episode.rs @@ -160,6 +160,10 @@ impl EpisodeWidget { /// Set the duration label. fn set_duration(&self, seconds: Option) { + if (seconds == Some(0)) || seconds.is_none() { + return; + }; + if let Some(secs) = seconds { self.duration.set_text(&format!("{} min", secs / 60)); self.duration.show();