Fix erreur d'appel post des marqueurs
This commit is contained in:
parent
036a432b48
commit
63a45247e3
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -398,13 +398,13 @@ def post_markers(api, file_, fileid):
|
||||||
du fichier <file_>, indexé à l'ID <fileid>
|
du fichier <file_>, indexé à l'ID <fileid>
|
||||||
"""
|
"""
|
||||||
for lang in file_.markers['lang']:
|
for lang in file_.markers['lang']:
|
||||||
api.post_file_language(fileid, lang)
|
api.post_file_language(fileid, value=lang)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
for qual in file_.markers['quality']:
|
for qual in file_.markers['quality']:
|
||||||
api.post_file_qualities(fileid, qual)
|
api.post_file_qualities(fileid, value=qual)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
for sub in file_.markers['subtitle']:
|
for sub in file_.markers['subtitle']:
|
||||||
api.post_file_subtitle(fileid, sub)
|
api.post_file_subtitle(fileid, value=sub)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -416,7 +416,7 @@ def main():
|
||||||
conf = config.Config()
|
conf = config.Config()
|
||||||
api = piexel.Piexel(conf.server, conf.app, conf.token)
|
api = piexel.Piexel(conf.server, conf.app, conf.token)
|
||||||
tokens = tokenizer.Tokenizer(conf, api)
|
tokens = tokenizer.Tokenizer(conf, api)
|
||||||
|
|
||||||
folders = api.get_folders()
|
folders = api.get_folders()
|
||||||
rules = api.get_paths()
|
rules = api.get_paths()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue