diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 5c847144..31be9dba 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -151,8 +151,10 @@ class File(models.Model): self.sampleate = 0 self.channels = 0 - if self.framerate: + if self.framerate and self.duration > 0: self.pixels = int(self.width * self.height * float(utils.parse_decimal(self.framerate)) * self.duration) + else: + self.pixels = 0 def get_path_info(self): data = {} diff --git a/pandora/config.indiancinema.jsonc b/pandora/config.indiancinema.jsonc index 786a53d4..9c96c149 100644 --- a/pandora/config.indiancinema.jsonc +++ b/pandora/config.indiancinema.jsonc @@ -1494,6 +1494,7 @@ "hasEvents": true, "hasPlaces": true, "item": "Keyword", + "autocomplete": true, "overlap": true, "type": "string" },