zackmawaldi / YouTube-shorts-generator

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

Error 400 uploading video #17

Closed filiperochs closed 1 year ago

filiperochs commented 1 year ago

The program runs correctly, but when trying to load the video file, an error occurs:

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 Uploading file... An HTTP error 400 occurred: b'{\n "error": {\n "code": 400,\n "message": "Invalid value at \'resource.status.privacy_status\' (type.googleapis.com/youtube.api.v3.PrivacyStatusWrapper.PrivacyStatus), \"\"",\n "errors": [\n {\n "message": "Invalid value at \'resource.status.privacy_status\' (type.googleapis.com/youtube.api.v3.PrivacyStatusWrapper.PrivacyStatus), \"\"",\n "reason": "invalid"\n }\n ],\n "status": "INVALID_ARGUMENT"\n }\n}\n'

what can it be?

filiperochs commented 1 year ago

I resolved this add the 'status' in config.py:

youtube = { 'title': '', 'description': '', 'tags': '', 'category': 23, # has to be an int, more about category below 'status': 'public' # {public, private, unlisted} }