diff --git a/encode.py b/encode.py index c2ecc12..3c6b063 100755 --- a/encode.py +++ b/encode.py @@ -122,8 +122,9 @@ def encode(xml, force=False): subprocess.call(cmd) shutil.move(mp4, public_mp4) shutil.move(mp4_480p, public_mp4_480p) - cms = [ - './subtitles.py', item_json + cmd = [ + './subtitles.py', + item_json ] subprocess.call(cmd) diff --git a/keywords.py b/keywords.py index a4cdac0..9573d5d 100644 --- a/keywords.py +++ b/keywords.py @@ -281,7 +281,7 @@ KEYWORDS = { "first contact", "foreigner", "intercourse", - "xenophilia/xenophopia", + "xenophilia/xenophobia", ], "Y": [ "first contact", diff --git a/subtitles.py b/subtitles.py old mode 100644 new mode 100755 index 6020550..31767ab --- a/subtitles.py +++ b/subtitles.py @@ -36,7 +36,7 @@ def get_api(): api.signin(**ox.web.auth.get('cdosea')) -def get_subtitles(): +def update_subtitles(): get_api() items = api.find({ 'query': { @@ -93,7 +93,7 @@ if __name__ == '__main__': if os.path.exists('subtitles.json'): items = json.load(open('subtitles.json')) else: - items = get_subtitles() + items = update_subtitles() with open('subtitles.json', 'w') as fd: json.dump(items, fd, indent=4, ensure_ascii=False)