mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Ignore enclosures without URL
This commit is contained in:
parent
cb494ac416
commit
997e9422eb
9 changed files with 144 additions and 12 deletions
|
@ -136,6 +136,10 @@ func (j *jsonItem) GetEnclosures() model.EnclosureList {
|
|||
enclosures := make(model.EnclosureList, 0)
|
||||
|
||||
for _, attachment := range j.Attachments {
|
||||
if attachment.URL == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
enclosures = append(enclosures, &model.Enclosure{
|
||||
URL: attachment.URL,
|
||||
MimeType: attachment.MimeType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue