From 5c951e25590ffc7338ae5b2034ae8a7acf26f8d8 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 28 Jul 2023 19:18:31 +0200 Subject: [PATCH] fix file create --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 31be9dba6..17c9d67a6 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -285,7 +285,7 @@ class File(models.Model): if self.is_subtitle: self.available = self.data and True or False - else: + elif self.id: self.available = not self.uploading and \ self.streams.filter(source=None, available=True).count() super(File, self).save(*args, **kwargs)