refactor(video.py): remove unnecessary print statement

refactor(montage.py): use os.path.join instead of string concatenation
refactor(thumbnail.py): use os.path.join instead of string concatenation
refactor(uploader.py): use os.path.join instead of string concatenation
refactor(uploader.py): add support for client_secret.json file with different names in credentials folder
docs(readme.md): update instructions for openai and unsplash keys
docs(readme.md): update instructions for google oauth client id json files
docs(readme.md): add information about channel.yaml file in each channel's folder
This commit is contained in:
Paillat
2023-06-25 17:40:01 +02:00
parent 268be54efe
commit 131e64eae0
5 changed files with 34 additions and 28 deletions

View File

@@ -31,8 +31,7 @@ class Video:
os.makedirs( self.path)
script = None
if os.path.exists(os.path.join( self.path, "script.json")):
printm("Video script already exists. Do you want to overwrite it ?")
if input("y/N") == "y":
if input("Video script already exists. Do you want to overwrite it ? (y/N) : ") == "y":
os.remove(os.path.join( self.path, "script.json"))
if not os.path.exists(os.path.join( self.path, "script.json")):
@@ -51,7 +50,7 @@ class Video:
"description": self.idea['description'] + "\n\n" + credits,
}
await generate_thumbnail( self.path, self.idea['title'], self.idea['description'])
videoid = await upload_video( self.path, self.idea['title'], self.metadata['description'], 28, "", "private", self.path)
videoid = await upload_video( self.path, self.idea['title'], self.metadata['description'], 28, "", "private", self.parent.path)
printm(f"Your video is ready! You can find it in { self.path}")
video_meta_file = {
"title": self.idea['title'],