mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-25 13:39:22 +00:00
give priority to content:encoded
This commit is contained in:
parent
91deb41d5b
commit
cc51fe01c2
@ -82,7 +82,7 @@ func ParseRSS(r io.Reader) (*Feed, error) {
|
|||||||
Date: dateParse(firstNonEmpty(srcitem.DublinCoreDate, srcitem.PubDate)),
|
Date: dateParse(firstNonEmpty(srcitem.DublinCoreDate, srcitem.PubDate)),
|
||||||
URL: srcitem.Link,
|
URL: srcitem.Link,
|
||||||
Title: srcitem.Title,
|
Title: srcitem.Title,
|
||||||
Content: srcitem.Description,
|
Content: firstNonEmpty(srcitem.ContentEncoded, srcitem.Description),
|
||||||
AudioURL: podcastURL,
|
AudioURL: podcastURL,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user