streams per file and no longer per item
This commit is contained in:
parent
d1d03e02e4
commit
3452476b4f
10 changed files with 178 additions and 126 deletions
|
|
@ -32,8 +32,12 @@ def update_streams(itemId):
|
|||
create stream, extract timeline and create derivatives
|
||||
'''
|
||||
item = models.Item.objects.get(itemId=itemId)
|
||||
if item.files.filter(is_main=True, is_video=True, available=False).count() == 0:
|
||||
item.update_streams()
|
||||
videos = item.main_videos()
|
||||
for video in videos:
|
||||
for f in video.streams.filter(source=None):
|
||||
f.extract_derivatives()
|
||||
#if item.files.filter(is_main=True, is_video=True, available=False).count() == 0:
|
||||
# item.update_streams()
|
||||
return True
|
||||
|
||||
def load_subtitles(itemId):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue