-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add YouTube channel tooltip support #157
Add YouTube channel tooltip support #157
Conversation
Implements #148 (didn't see that until now) |
Also needs a rework on how it caches the channels, will look into tomorrow. |
|
@@ -12,6 +12,7 @@ | |||
|
|||
- Made Reddit Score field in Livestreamfails tooltip use humanized value. (#164) | |||
- Added support for customizable oEmbed resolving for websites with the `providers.json` file. See [`data/oembed/providers.json`](data/oembed/providers.json). Three new environment variables can be set. See [`internal/resolvers/oembed/README.md`](internal/resolvers/oembed/README.md) (#139, #152) | |||
- Added support for YouTube channel links. (#157) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog entry needs to move up to the ## Unreleased
section
As pajlada said, cfg in main.go is a singleton that we shouldn't rely on in tests in case it'd change or get removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some requested changes - will need a rereview once that's been gone through
also reformatted some things automatically :tf:
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
This PR aims to add support for YouTube channel links. Currently it only supports
youtube.com/{channel,user,c}/<id_or_name>
links. Ideally this would also extend to custom channel links such asyoutube.com/tranceluv
but that's up for discussion as to how.Tested locally and confirmed that
/user/
,/channel/
and/c/
work.TODO:
youtube.com/c/<channel>
linksSupportwon't do for nowyoutube.com/<channel>
linksCloses #148