def update_thumbnail_on_youtube(video, path): try: request = youtube.thumbnails().set(videoId=video['id'], alt="media", media_body=MediaFileUpload(path)) response = request.execute() print(response) except Exception as e: raise(e) finally: os.remove(path)this works fine. i'll give a list of videos from my own youtube playlist, auth, and path is a local image file. after a hundred if these updates it'll throw 403
typically wait a day and it fixes? maybe? doesnt say what the deal is in the documentation.