mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-21 12:36:36 +00:00
Merge pull request #627 from tcely/patch-5
Don't write zero into MPAA in .nfo
This commit is contained in:
commit
aa820821d4
@ -1444,7 +1444,8 @@ class Media(models.Model):
|
||||
mpaa = nfo.makeelement('mpaa', {})
|
||||
mpaa.text = str(self.age_limit)
|
||||
mpaa.tail = '\n '
|
||||
nfo.append(mpaa)
|
||||
if self.age_limit and self.age_limit > 0:
|
||||
nfo.append(mpaa)
|
||||
# runtime = media metadata duration in seconds
|
||||
runtime = nfo.makeelement('runtime', {})
|
||||
runtime.text = str(self.duration)
|
||||
|
Loading…
Reference in New Issue
Block a user