RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

Change video name to Thread Title

Open Governnment opened this issue 4 years ago • 3 comments

I tried to change 17 line in final_video.py

from this def make_final_video(number_of_clips):

to this def make_final_video(reddit_object, number_of_clips):

and then 59th line changed to this final.write_videofile(text=reddit_object["thread_title"], fps=30, audio_codec="aac", audio_bitrate="192k"

I'm still getting the error

File "main.py", line 22, in <module> final_video = make_final_video(number_of_comments) TypeError: make_final_video() missing 1 required positional argument: 'number_of_clips'

Governnment avatar Jun 02 '22 13:06 Governnment

I wrote up a patch for what you are trying to do, which I assume is make the final video's name the Reddit thread title. You can try it out here: https://github.com/reoccurcat/RedditVideoMakerBot/tree/final_video_name_test

reoccurcat avatar Jun 02 '22 21:06 reoccurcat

My patch #139 names the file after the reddit thread title if that's what you want

kalanscr avatar Jun 03 '22 02:06 kalanscr

Hi @Governnment

I hope you were able to resolve your issue as there has not been activity in this Issue, I will be closing this for the time being. Feel free to re-open the issue if it has not been solved!!

Happy Coding!

FreebieII avatar Jun 06 '22 19:06 FreebieII