From 3a93892a2244dc4d1644fd4fcb399b0319d06f5e Mon Sep 17 00:00:00 2001 From: RiveN000 <61630074+RiveN000@users.noreply.github.com> Date: Mon, 15 Aug 2022 11:21:54 +0200 Subject: [PATCH] Added comment to background.json --- utils/backgrounds.json | 1 + video_creation/background.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/backgrounds.json b/utils/backgrounds.json index a8d8d41..af800c5 100644 --- a/utils/backgrounds.json +++ b/utils/backgrounds.json @@ -1,4 +1,5 @@ { + "__comment": "Supported Backgrounds. Can add/remove background video here...", "motor-gta": [ "https://www.youtube.com/watch?v=vw5L4xCPy9Q", "bike-parkour-gta.mp4", diff --git a/video_creation/background.py b/video_creation/background.py index 2521fcc..ecddec2 100644 --- a/video_creation/background.py +++ b/video_creation/background.py @@ -12,14 +12,12 @@ from pytube.cli import on_progress from utils import settings from utils.console import print_step, print_substep -# Supported Background. -# (https://zulko.github.io/moviepy/ref/VideoClip/VideoClip.html#moviepy.video.VideoClip.VideoClip.set_position) - # Load background videos with open("utils/backgrounds.json") as json_file: background_options = json.load(json_file) # Add position lambda function +# (https://zulko.github.io/moviepy/ref/VideoClip/VideoClip.html#moviepy.video.VideoClip.VideoClip.set_position) for name in list(background_options.keys()): pos = background_options[name][3]