-
Notifications
You must be signed in to change notification settings - Fork 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
SpiffyTitles: YouTube - Get Channel Info #26
Comments
There is a preliminary implementation of channel info support at https://github.com/matiasw/limnoria-plugins/tree/spiffytitles-youtube-channel/SpiffyTitles It still needs to add support for @-URLs, such as https://www.youtube.com/@GoogleDevelopers, but it appears that there is no API to get a channel ID by @ signifier. We would also need to decide if there should be a separate configurable template for channel info, like there is for video info - currently, there is a hardcoded format that is always used for channel information. For these reasons, I am not making a pull request quite yet, but you could still look into using this development version if you want channel information support right now, as it is basically functional. |
@matiasw |
@fred0r I added support for @username style channels - turns out you just need to strip the @ and the API works. @oddluck If you could help me fix the yt_logo thing, I would make a pull request. Here's the error I'm getting:
I can not figure out why this piece of code does not work here, when it works in the video section. |
https://github.com/matiasw/limnoria-plugins/blob/spiffytitles-youtube-channel/SpiffyTitles%2Fplugin.py#L1013 You're overwriting the channel variable which is irc specific with the YouTube channel name... Call that variable something else like yt_channel or whatever |
When someone pastes a YT-Url to a Users YT-Channel, the bot only shows 'YouTube' and the Bot-Console shows:
SpiffyTitles: error getting video id from https://www.youtube.com/channel/.........
The text was updated successfully, but these errors were encountered: