Added comment to background.json

This commit is contained in:
RiveN000 committed 2022-08-15 11:21:54 +02:00
1 parent 2da3d95959
commit 3a93892a22
2 files changed
+2 -3

No files matched your search

+1
View File
@@ -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",
+1 -3
View File
@@ -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]