diff --git a/README b/README index 92dbd7b0..23c47af5 100644 --- a/README +++ b/README @@ -146,7 +146,9 @@ Now you can open pandora in your browser, the first user to sign up will become === Updating === To update a pandora installation get the latest version from bzr by running - ./update.py + su pandora + cd /srv/pandora + ./update.py this will update pandora/oxjs/python-ox and list possible upgrades to the db diff --git a/pandora/item/models.py b/pandora/item/models.py index 66b2fc92..a471f1eb 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -361,10 +361,14 @@ class Item(models.Model): else: self.poster_height = 128 self.poster_width = 80 - if not settings.USE_IMDB and self.sort: - if self.poster_frame == -1 and self.sort.duration: - self.poster_frame = self.sort.duration/2 - update_poster = True + if not settings.USE_IMDB: + if self.poster_frame == -1: + try: + if self.sort.duration: + self.poster_frame = self.sort.duration/2 + update_poster = True + except ItemSort.DoesNotExist: + pass self.json = self.get_json() self.json['modified'] = datetime.now() super(Item, self).save(*args, **kwargs)