Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CheerImpl.getImageURL does not return the correct URL #30

@Ignamarte

Description

@Ignamarte

Hey there!

public String getImageURL(CheerTheme theme, CheerType type, CheerSize size) from CheerImpl.java does not return a valid URL.

For instance,

val cheer = new CheerImpl(100, "TEST")
val cheerType = CheerType.STATIC
val cheerTheme = CheerTheme.LIGHT
val cheerSize = CheerSize.TINY

cheer.getImageURL(cheerTheme, cheerType, cheerSize)

returns the following string: static-cdn.jtvnw.net/bits/<theme>/<type>/<color>/<size>/light/static/purple/1.

The issue, according to the method getImageURL , stems from the value of ROOT_URL which should be static-cdn.jtvnw.net/bits instead of static-cdn.jtvnw.net/bits/<theme>/<type>/<color>/<size>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions