Skip to content
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 image url helper methods for HelixGame and HelixVideo #324

Merged

Conversation

CaveMobster
Copy link
Collaborator

Type: Improvement

Fixes: #322

*/
getThumbnailUrl(width: number, height: number): string {
return this[rawDataSymbol].thumbnail_url
.replace('{width}', width.toString())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work - apparently Twitch uses %{placeholder} rather than {placeholder} in only this specific case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh well spotted! Fixed that.

@d-fischer d-fischer merged commit e5747ee into twurple:versions/5.0 Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image url getters for HelixChannelSearchResult, HelixGame and HelixVideo
2 participants