mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 21:19:19 +00:00
extend feed links query
This commit is contained in:
parent
6dcb75c450
commit
d9cd520396
@ -15,7 +15,19 @@ type FeedSource struct {
|
|||||||
Url string `json:"url"`
|
Url string `json:"url"`
|
||||||
}
|
}
|
||||||
|
|
||||||
const feedLinks = `link[type='application/rss+xml'],link[type='application/atom+xml']`
|
const feedLinks = `
|
||||||
|
link[type='application/rss+xml'],
|
||||||
|
link[type='application/atom+xml'],
|
||||||
|
a[href$="/feed"],
|
||||||
|
a[href$="/feed/"],
|
||||||
|
a[href$="feed.xml"],
|
||||||
|
a[href$="atom.xml"],
|
||||||
|
a[href$="rss.xml"],
|
||||||
|
a:contains("rss"),
|
||||||
|
a:contains("RSS"),
|
||||||
|
a:contains("feed"),
|
||||||
|
a:contains("FEED")
|
||||||
|
`
|
||||||
|
|
||||||
func FindFeeds(r *http.Response) ([]FeedSource, error) {
|
func FindFeeds(r *http.Response) ([]FeedSource, error) {
|
||||||
sources := make([]FeedSource, 0, 0)
|
sources := make([]FeedSource, 0, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user