Changed file import name and resolved conflicts

pull/139/head
Kamushy 3 years ago committed by GitHub
parent d3b288008f
commit 367105fb2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ from moviepy.editor import (
CompositeAudioClip,
CompositeVideoClip,
)
import reddit.askreddit
import reddit.subreddit
import re
from utils.console import print_step
@ -58,7 +58,7 @@ def make_final_video(number_of_clips):
)
image_concat.audio = audio_composite
final = CompositeVideoClip([background_clip, image_concat])
filename = (re.sub('[?\"%*:|<>]', '', ("assets/" + reddit.askreddit.submission.title + ".mp4")))
filename = (re.sub('[?\"%*:|<>]', '', ("assets/" + reddit.subreddit.submission.title + ".mp4")))
final.write_videofile(filename, fps=30, audio_codec="aac", audio_bitrate="192k")
for i in range(0, number_of_clips):
pass

Loading…
Cancel
Save