fix path name of multi track videos

This commit is contained in:
j 2018-05-22 01:27:43 +02:00
parent 8391612d58
commit 717248bc73

View file

@ -524,7 +524,7 @@ class File(models.Model):
tinfo = ox.avinfo(target) tinfo = ox.avinfo(target)
del tinfo['path'] del tinfo['path']
f = File(oshash=tinfo['oshash'], item=self.item) f = File(oshash=tinfo['oshash'], item=self.item)
f.path = self.path.rsplit('.', 1)[0] + config['formats'][0] f.path = self.path.rsplit('.', 1)[0] + '.' + config['formats'][0]
f.info = tinfo f.info = tinfo
f.info['language'] = language f.info['language'] = language
f.info['extension'] = config['formats'][0] f.info['extension'] = config['formats'][0]