Duration may be missing for discover episodes
@@ -65,6 +65,9 @@ def guids(self):
@cached_property
def duration(self):
+ if self.item.duration is None:
+ return None
+
hours, remainder = divmod(self.item.duration / 1000, 3600)
minutes, seconds = divmod(remainder, 60)
