-
Notifications
You must be signed in to change notification settings - Fork 36
YouTube Support #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Would it be possible to implement this without chat support/emote support for now? |
Hi, |
I'm attempting to import a few hundred YouTube videos into Ganymede, but I lack experience with APIs. Manual importing would be very time-consuming, so I'm eager to explore this approach. To import the videos, I believe I need to use the /api/v1/vod endpoint. ChatGPT generated the following script for me:
However, when I run this script, I receive the error message {'message': 'Invalid access token'}. I'm unsure how to obtain a valid token. I have configured the token in the API container as follows: markdown
I'm starting to feel that my lack of API knowledge may make this task unrealistic. I understand that importing YouTube videos may be outside the scope of this project. If you think this is not a viable option for someone without experience, please let me know. Otherwise, I would greatly appreciate any tips on how to successfully import videos into Ganymede. Thank you ! :) |
Authentication only supports cookies so you'll either need to use the cookie in your browser or perform an auth request in your python script.
with the following body {
"username": "my_username",
"password": "my_password"
} Then you need to use the cookie returned by the response ( For the request body for creating a VOD it looks like you have it mostly right. I would reference the http/vod.go CreateVodRequest struct for details of what is required. It may also be useful to perform a Let me know if there's anything else I can help with. I don't like to advertise the API much as I tend to change it between versions. Related, are you downloading chats for your YouTube vods or just the video/stream? |
YouTube VOD and live support
Video
Both VOD and live video is easy. Use
streamlink
for live streams andyt-dlp
for vods.Chat
Chat will be the problem. Yt-dlp supports vod chat downloading. Chat-downloader supports live chat downloading. The problem is emote support. TwitchDownloader which is used to render the chat does not support any YouTube functionality.
The text was updated successfully, but these errors were encountered: