zackmawaldi / YouTube-shorts-generator

Automatically download Reddit videos, edit them, and upload them to YouTube.
MIT License
323 stars 62 forks source link

isbug: proces restarts after dowload and encoding #28

Closed akhil3417 closed 1 year ago

akhil3417 commented 1 year ago

➜ python main.py Logging into Reddit... Log in success! Retrieving post info... Scraping reddit success! Returning list of info back to main. Video chosen: url https://v.redd.it/bkhxvxbfslcb1 title Little man wasn't about to be denied again... author thejeffroc Attempting to download reddit video...

Connecting... Scraping... Downloading and Re-encoding... Video:

[██████████████████████████████████████████████████] [6.43/6.43 MB] Audio: [██████████████████████████████████████████████████] [0.90/0.90 MB] Done Download success! Moviepy - Building video temp_clips/output.mp4. MoviePy - Writing audio in outputTEMP_MPY_wvf_snd.mp4 MoviePy - Done. Moviepy - Writing video temp_clips/output.mp4

Moviepy - Done ! Moviepy - video ready temp_clips/output.mp4 An error occurred in main() on attempt 1: Expecting value: line 1 column 1 (char 0) Logging into Reddit... Log in success! Retrieving post info...

Here its re-starts download and i have to intervene to stop the process.

akhil3417 commented 1 year ago

their were some errors in my client_secrets.json

but a more verbose error message , would be great

zackmawaldi commented 1 year ago

I agree, thank you for bringing it up to my attention. I just implemented more verbose error messaging :)