update all subtitles
This commit is contained in:
parent
791fbbc3c7
commit
a827f04632
2 changed files with 9 additions and 2 deletions
|
|
@ -825,9 +825,16 @@ def load_defaults(options):
|
|||
|
||||
def update_subtitles(options):
|
||||
import item.models
|
||||
|
||||
options = load_defaults(options)
|
||||
prefix = Path(options['prefix'])
|
||||
|
||||
if options['offset'] is None:
|
||||
offsets = [int(folder) for folder in os.listdir(prefix / 'render') if folder.isdigit()]
|
||||
for offset in offsets:
|
||||
options['offset'] = offset
|
||||
update_subtitles(options)
|
||||
return
|
||||
|
||||
base = int(options['offset'])
|
||||
lang, tlang = parse_lang(options["lang"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue