dont load subtitles, causes data loss

This commit is contained in:
j 2013-05-14 15:54:55 +00:00
parent dd49b61a59
commit a07767d658
2 changed files with 1 additions and 3 deletions

View file

@ -1122,10 +1122,8 @@ class Item(models.Model):
self.rendered = streams.count() > 0
self.save()
if async:
tasks.load_subtitles.delay(self.itemId)
get_sequences.delay(self.itemId)
else:
tasks.load_subtitles(self.itemId)
get_sequences(self.itemId)
def save_poster(self, data):

View file

@ -78,7 +78,7 @@ def rebuild_timeline(itemId):
i = models.Item.objects.get(itemId=itemId)
for s in i.streams():
s.make_timeline()
i.update_timeline()
i.update_timeline(async=False)
@task(queue="encoding")
def load_subtitles(itemId):