Implements GET for images
This commit is contained in:
4
album.go
4
album.go
@@ -106,8 +106,8 @@ func (a *Album) String() string {
|
||||
|
||||
var rxExt = regexp.MustCompile(`\.([0-9]+)([a-zA-Z]+)\z`)
|
||||
|
||||
func (a *Album) CoverExt() string {
|
||||
ext := path.Ext(a.CoverURL)
|
||||
func AlbumCoverExt(URL string) string {
|
||||
ext := path.Ext(URL)
|
||||
m := rxExt.FindStringSubmatch(ext)
|
||||
if m != nil {
|
||||
ext = "." + m[2]
|
||||
|
||||
Reference in New Issue
Block a user