mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-15 01:15:25 +08:00
parent
e02d3e7739
commit
78a7578f5c
1 changed files with 3 additions and 1 deletions
|
@ -245,7 +245,9 @@ func GetImages(html string) (map[string]string, error) {
|
||||||
// Loop through all the matches and add them to the dictionary
|
// Loop through all the matches and add them to the dictionary
|
||||||
for _, match := range imageTagMatches {
|
for _, match := range imageTagMatches {
|
||||||
imageURL := match[1]
|
imageURL := match[1]
|
||||||
images[imageURL] = match[0]
|
if !strings.HasPrefix(imageURL, "data:image/") {
|
||||||
|
images[imageURL] = match[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return images, nil
|
return images, nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue