7x11x13 / youtube-up

Upload videos to YouTube using the internal YouTube API. Does not require an API key.
https://7x11x13.xyz/youtube-up
14 stars 5 forks source link

Bad Request for url: https://studio.youtube.com/youtubei/v1/upload/createvideo #8

Closed gunpal5 closed 3 weeks ago

gunpal5 commented 1 month ago

Getting this error while uploading

71%|████████████████████████████████████████████████████████████▎ | 71/100 [00:03<00:01, 18.09it/s] Traceback (most recent call last): File "C:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\XXXX\AppData\Local\Programs\Python\Python310\Scripts\youtube-up.exe__main__.py", line 7, in File "C:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\site-packages\youtube_up__main__.py", line 204, in main video_id = uploader.upload(video_file, metadata, callback) File "C:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\site-packages\youtube_up\uploader.py", line 167, in upload encrypted_video_id = self._create_video(scotty_resource_id, metadata, data) File "C:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\site-packages\youtube_up\uploader.py", line 490, in _create_video r.raise_for_status() File "C:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://studio.youtube.com/youtubei/v1/upload/createvideo?key=AIzaSyBUPetSUmoZL-OhlxA7wSac5XinrygCqMo&alt=json

7x11x13 commented 1 month ago

Can you post the full metadata you're using?

7x11x13 commented 3 weeks ago

I think this issue is fixed in v0.5.4