mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 14:19:56 -05:00
Associating Video files when downloaded.
This commit is contained in:
parent
76a9c0d88c
commit
d575b087b3
3 changed files with 17 additions and 1 deletions
|
|
@ -289,10 +289,13 @@ class Video(ModelHelper, Base):
|
|||
|
||||
if poster_file:
|
||||
poster_file.do_index()
|
||||
poster_file.associated = True
|
||||
if caption_file:
|
||||
caption_file.do_index()
|
||||
caption_file.associated = True
|
||||
if info_json_file:
|
||||
info_json_file.do_index()
|
||||
info_json_file.associated = True
|
||||
|
||||
session.flush([i for i in files])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue