diff --git a/tubesync/sync/models.py b/tubesync/sync/models.py index 0ecb0a6..35fcda1 100644 --- a/tubesync/sync/models.py +++ b/tubesync/sync/models.py @@ -1059,7 +1059,7 @@ class Media(models.Model): duration = self.loaded_metadata.get(field, 0) try: duration = int(duration) - except ValueError: + except (TypeError, ValueError): duration = 0 return duration