mirror of
https://github.com/nkanaev/yarr.git
synced 2025-07-10 00:20:13 +00:00
learn more about formats
This commit is contained in:
parent
43620cd9b6
commit
3e14716fc6
@ -2,18 +2,69 @@
|
|||||||
|
|
||||||
- feed:
|
- feed:
|
||||||
- title
|
- title
|
||||||
|
|
||||||
|
rdf>channel>title (rss 0.90)
|
||||||
|
rdf>channel>title (rss 1.0)
|
||||||
|
rss>channel>title (rss 0.91 netscape)
|
||||||
|
rss>channel>title (rss 0.91 userland)
|
||||||
|
rss>channel>title (rss 2.0)
|
||||||
|
feed>title (atom 1.0)
|
||||||
|
|
||||||
- site_url
|
- site_url
|
||||||
- feed_url
|
|
||||||
|
rdf>channel>link (rss 0.90)
|
||||||
|
rdf>channel>link (rss 1.0)
|
||||||
|
rss>channel>link (rss 0.91 netscape)
|
||||||
|
rss>channel>link (rss 0.91 userland)
|
||||||
|
rss>channel>link (rss 2.0)
|
||||||
|
feed>link (atom 1.0)
|
||||||
|
|
||||||
- item:
|
- item:
|
||||||
- guid
|
- guid
|
||||||
|
|
||||||
|
rss>channel>guid (rss 2.0)
|
||||||
|
feed>entry>id (atom 1.0)
|
||||||
|
|
||||||
- date
|
- date
|
||||||
|
|
||||||
|
rdf>item>dc:date (rss 1.0)
|
||||||
|
rss>channel>pubDate (rss 2.0)
|
||||||
|
feed>entry>updated (atom 1.0)
|
||||||
|
feed>entry>published (atom 1.0)
|
||||||
|
|
||||||
- url
|
- url
|
||||||
|
|
||||||
|
rdf>item>link (rss 0.90)
|
||||||
|
rdf>item>link (rss 1.0)
|
||||||
|
rss>item>link (rss 0.91 netscape)
|
||||||
|
rss>item>link (rss 0.91 userland)
|
||||||
|
feed>entry>link[rel=alternate] (atom 1.0)
|
||||||
|
|
||||||
- title
|
- title
|
||||||
|
|
||||||
|
rdf>item>title (rss 0.90)
|
||||||
|
rdf>item>title (rss 1.0)
|
||||||
|
rss>item>title (rss 0.91 netscape)
|
||||||
|
rss>item>title (rss 0.91 userland)
|
||||||
|
feed>entry>title (atom 1.0
|
||||||
|
|
||||||
- content
|
- content
|
||||||
|
|
||||||
|
rss>item>description (rss 0.91 netscape)
|
||||||
|
rss>item>description (rss 2.0)
|
||||||
|
rdf>item>description (rss 1.0)
|
||||||
|
rdf>item>content:encoded (rss 1.0)
|
||||||
|
feed>entry>content (atom 1.0)
|
||||||
|
|
||||||
- image_url
|
- image_url
|
||||||
|
|
||||||
|
feed>entry>enclosure[rel='image/*'] (atom 1.0) ???
|
||||||
|
|
||||||
- podcast_url
|
- podcast_url
|
||||||
|
|
||||||
|
rss>item>enclosure attr(url) (rss 2.0)
|
||||||
|
feed>entry>enclosure[rel='audio/*'] (atom 1.0) ???
|
||||||
|
|
||||||
# specs
|
# specs
|
||||||
|
|
||||||
- rss
|
- rss
|
||||||
@ -27,11 +78,17 @@
|
|||||||
https://www.rssboard.org/rss-0-9-1
|
https://www.rssboard.org/rss-0-9-1
|
||||||
- 0.92
|
- 0.92
|
||||||
https://www.rssboard.org/rss-0-9-2
|
https://www.rssboard.org/rss-0-9-2
|
||||||
|
by userland, no significant changes from 0.91
|
||||||
- 0.93 (withdrawn)
|
- 0.93 (withdrawn)
|
||||||
http://backend.userland.com/rss093
|
http://backend.userland.com/rss093
|
||||||
- 0.94 (withdrawn)
|
- 0.94 (withdrawn)
|
||||||
- 1.0
|
- 1.0
|
||||||
https://web.resource.org/rss/1.0/
|
https://web.resource.org/rss/1.0/
|
||||||
|
https://web.archive.org/web/20021014094554/https://web.resource.org/rss/1.0/spec
|
||||||
|
reintroduced rdf from 0.90, added dublincore namespaces etc
|
||||||
|
namespaces:
|
||||||
|
content: http://purl.org/rss/1.0/modules/content/
|
||||||
|
dc: http://purl.org/dc/elements/1.1/
|
||||||
- 2.0
|
- 2.0
|
||||||
https://cyber.harvard.edu/rss/rss.html
|
https://cyber.harvard.edu/rss/rss.html
|
||||||
https://www.rssboard.org/rss-2-0
|
https://www.rssboard.org/rss-2-0
|
||||||
|
@ -5,11 +5,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type rssFeed struct {
|
type rssFeed struct {
|
||||||
XMLName xml.Name `xml:"rss"`
|
XMLName xml.Name `xml:"rss"`
|
||||||
Version string `xml:"version,attr"`
|
Version string `xml:"version,attr"`
|
||||||
Title string `xml:"channel>title"`
|
Title string `xml:"channel>title"`
|
||||||
Links []rssLink `xml:"channel>link"`
|
Links []rssLink `xml:"channel>link"`
|
||||||
Items []rssItem `xml:"channel>item"`
|
Items []rssItem `xml:"channel>item"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type rssItem struct {
|
type rssItem struct {
|
||||||
@ -20,8 +20,8 @@ type rssItem struct {
|
|||||||
PubDate string `xml:"pubDate"`
|
PubDate string `xml:"pubDate"`
|
||||||
EnclosureLinks []rssEnclosure `xml:"enclosure"`
|
EnclosureLinks []rssEnclosure `xml:"enclosure"`
|
||||||
|
|
||||||
DublinCoreDate string `xml:"http://purl.org/dc/elements/1.1/ date"`
|
DublinCoreDate string `xml:"http://purl.org/dc/elements/1.1/ date"`
|
||||||
DublinCoreContent string `xml:"http://purl.org/rss/1.0/modules/content/ encoded"`
|
ContentEncoded string `xml:"http://purl.org/rss/1.0/modules/content/ encoded"`
|
||||||
|
|
||||||
FeedBurnerLink string `xml:"http://rssnamespace.org/feedburner/ext/1.0 origLink"`
|
FeedBurnerLink string `xml:"http://rssnamespace.org/feedburner/ext/1.0 origLink"`
|
||||||
FeedBurnerEnclosureLink string `xml:"http://rssnamespace.org/feedburner/ext/1.0 origEnclosureLink"`
|
FeedBurnerEnclosureLink string `xml:"http://rssnamespace.org/feedburner/ext/1.0 origEnclosureLink"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user