diff --git a/tubesync/sync/models.py b/tubesync/sync/models.py index 14ce4cf0..59d9e6d8 100644 --- a/tubesync/sync/models.py +++ b/tubesync/sync/models.py @@ -1426,7 +1426,8 @@ class Media(models.Model): rating.tail = '\n ' ratings = nfo.makeelement('ratings', {}) ratings.text = '\n ' - ratings.append(rating) + if self.rating is not None: + ratings.append(rating) ratings.tail = '\n ' nfo.append(ratings) # plot = media metadata description