mirror of
https://github.com/Paillat-dev/FABLE.git
synced 2026-01-02 01:06:20 +00:00
refactor(montage.py): remove unused translate function
refactor(montage.py): remove unused srt_fr variable refactor(montage.py): remove saving of french subtitle file refactor(main.py): remove unused translate import and function call
This commit is contained in:
8
main.py
8
main.py
@@ -5,7 +5,7 @@ import logging
|
||||
|
||||
from generators.ideas import generate_ideas
|
||||
from generators.script import generate_script
|
||||
from generators.montage import mount, prepare, translate
|
||||
from generators.montage import mount, prepare
|
||||
from generators.miniature import generate_miniature
|
||||
from generators.uploader import upload_video
|
||||
|
||||
@@ -56,12 +56,6 @@ async def main():
|
||||
with open(path + "/meta.txt", 'w', encoding='utf-8') as f:
|
||||
f.write(description)
|
||||
f.close()
|
||||
with open(path + "/meta_FR.txt", 'w', encoding='utf-8') as f:
|
||||
transtitle = translate('FR', idea['title']) #use the non formatted title
|
||||
transdesc = translate('FR', idea['description'])
|
||||
final = f"Titre: {transtitle}\nDescription: {transdesc}\nCrédits musicaux: {credits}"
|
||||
f.write(final)
|
||||
f.close()
|
||||
generate_miniature(path, title=idea['title'], description=idea['description'])
|
||||
upload_video(path, idea['title'], description, 28, "", "private", subjectdirpath)
|
||||
print(f"Your video is ready! You can find it in {path}.")
|
||||
|
||||
Reference in New Issue
Block a user