dont load subtitles, causes data loss
This commit is contained in:
parent
dd49b61a59
commit
a07767d658
2 changed files with 1 additions and 3 deletions
|
@ -1122,10 +1122,8 @@ class Item(models.Model):
|
||||||
self.rendered = streams.count() > 0
|
self.rendered = streams.count() > 0
|
||||||
self.save()
|
self.save()
|
||||||
if async:
|
if async:
|
||||||
tasks.load_subtitles.delay(self.itemId)
|
|
||||||
get_sequences.delay(self.itemId)
|
get_sequences.delay(self.itemId)
|
||||||
else:
|
else:
|
||||||
tasks.load_subtitles(self.itemId)
|
|
||||||
get_sequences(self.itemId)
|
get_sequences(self.itemId)
|
||||||
|
|
||||||
def save_poster(self, data):
|
def save_poster(self, data):
|
||||||
|
|
|
@ -78,7 +78,7 @@ def rebuild_timeline(itemId):
|
||||||
i = models.Item.objects.get(itemId=itemId)
|
i = models.Item.objects.get(itemId=itemId)
|
||||||
for s in i.streams():
|
for s in i.streams():
|
||||||
s.make_timeline()
|
s.make_timeline()
|
||||||
i.update_timeline()
|
i.update_timeline(async=False)
|
||||||
|
|
||||||
@task(queue="encoding")
|
@task(queue="encoding")
|
||||||
def load_subtitles(itemId):
|
def load_subtitles(itemId):
|
||||||
|
|
Loading…
Reference in a new issue