Fix media

This commit is contained in:
video-prize-ranch 2022-01-17 17:47:33 -05:00
parent 5cba9352c5
commit 0268a8d52d
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func FetchAlbum(albumID string) (types.Album, error) {
data.Get("media").ForEach(
func(key gjson.Result, value gjson.Result) bool {
url := value.Get("url").String()
url = strings.ReplaceAll(url, "https://i.imgur.com", "/media")
url = strings.ReplaceAll(url, "https://i.imgur.com", "")
media = append(media, types.Media{
Id: value.Get("id").String(),