mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add functions to get wallpaper urls
This commit is contained in:
parent
bfad0caa9a
commit
a283ba7247
1 changed files with 10 additions and 0 deletions
10
wallpaper.go
10
wallpaper.go
|
|
@ -1,4 +1,14 @@
|
||||||
package crunchyroll
|
package crunchyroll
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
// Wallpaper contains a wallpaper name which can be set via Account.ChangeWallpaper.
|
// Wallpaper contains a wallpaper name which can be set via Account.ChangeWallpaper.
|
||||||
type Wallpaper string
|
type Wallpaper string
|
||||||
|
|
||||||
|
func (w *Wallpaper) TinyUrl() string {
|
||||||
|
return fmt.Sprintf("https://static.crunchyroll.com/assets/wallpaper/360x115/%s", *w)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *Wallpaper) BigUrl() string {
|
||||||
|
return fmt.Sprintf("https://static.crunchyroll.com/assets/wallpaper/1920x400/%s", *w)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue