mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Ignore enclosures without URL
This commit is contained in:
parent
cb494ac416
commit
997e9422eb
9 changed files with 144 additions and 12 deletions
|
@ -161,6 +161,10 @@ func (a *atom10Entry) entryEnclosures() model.EnclosureList {
|
|||
|
||||
for _, link := range a.Links {
|
||||
if strings.ToLower(link.Rel) == "enclosure" {
|
||||
if link.URL == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
if _, found := duplicates[link.URL]; !found {
|
||||
duplicates[link.URL] = true
|
||||
length, _ := strconv.ParseInt(link.Length, 10, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue