mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-21 11:09:38 +05:00
image proxying
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package sc
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -99,6 +100,10 @@ func (p *Playlist) Fix(cached bool) error {
|
||||
p.Artwork = strings.Replace(p.Artwork, "-large.", "-t200x200.", 1)
|
||||
}
|
||||
|
||||
if cfg.ProxyImages && p.Artwork != "" {
|
||||
p.Artwork = "/proxy/images?url=" + url.QueryEscape(p.Artwork)
|
||||
}
|
||||
|
||||
p.Author.Fix(false)
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user