Fix erreur d'appel post des marqueurs

This commit is contained in:
redstorm45 2017-12-11 09:05:27 +01:00
parent 036a432b48
commit 63a45247e3

View file

@ -398,13 +398,13 @@ def post_markers(api, file_, fileid):
du fichier <file_>, indexé à l'ID <fileid>
"""
for lang in file_.markers['lang']:
api.post_file_language(fileid, lang)
api.post_file_language(fileid, value=lang)
time.sleep(1)
for qual in file_.markers['quality']:
api.post_file_qualities(fileid, qual)
api.post_file_qualities(fileid, value=qual)
time.sleep(1)
for sub in file_.markers['subtitle']:
api.post_file_subtitle(fileid, sub)
api.post_file_subtitle(fileid, value=sub)
time.sleep(1)
def main():
@ -416,7 +416,7 @@ def main():
conf = config.Config()
api = piexel.Piexel(conf.server, conf.app, conf.token)
tokens = tokenizer.Tokenizer(conf, api)
folders = api.get_folders()
rules = api.get_paths()