28 Commits

Author SHA1 Message Date
Jáchym Toušek 23a1360214 Optional RSS item link (#96) 2022-11-15 12:05:42 -05:00
CodeLingo Bot 899df4f557 Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-02-20 15:33:07 -08:00
Max Redmond 412106c6b2 enabling xml unmarshaling rss and atom feeds 2018-11-05 12:07:12 -08:00
Vabd 21f6865fa6 Bring Content next to Description + define namespace for content 2018-03-21 09:35:59 -07:00
Vabd 087409c2e1 Improve content appending in item 2018-03-21 09:35:59 -07:00
Vabd 14ba03d14c Add content property for feed items 2018-03-21 09:35:59 -07:00
Gabriel Simmer 4b936b5221 [feature] Support feed item images (#41)
* Add support for podcast-centered tags
* Adding proper support for Enclosure and and Image tags, which didn't seem to generate properly (might have been a bug on my end but I'm not sure).
* Enclosure.Length from string to int
* Revert change from string to int for Enclosure length
* Accidently changed err == to != for enclosure & author
* Update README to reflect fork goals
* List of tags to implement
* fix RSS image when no Image is mentioned in the Feed
* do not assume that a Link with a field Type is an Enclosure
* expected tests
* better handling of enclosures
* fix package
* Fixes as requested
* Fix travis build error
2017-11-07 20:59:58 -08:00
Milan Aleksic d7974c3e26 Making Source field optional 2017-05-31 11:51:30 -07:00
Milan Aleksic 3dbbcacc14 support added for Source field in RSS 2017-05-31 11:51:30 -07:00
ZhiFeng Hu f3731b977a Update rss pubDate
Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
2015-11-22 15:14:22 +08:00
ZhiFeng Hu 413fe3732e Update time format RFC1123
Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
2015-11-22 15:07:34 +08:00
ZhiFeng Hu f8b14841eb Remove unused time import
Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
2015-11-22 14:50:26 +08:00
ZhiFeng Hu 79b65d949d Try to fix time format problem
Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
2015-11-22 14:47:55 +08:00
Kamil Kisiel 56510aba8f rename int_Length -> intLength 2015-08-09 19:14:57 -07:00
Paul Petring e2bd4557b0 RssEnclosure.Length remains string to not break the API
code now gofmt formatted
2015-08-08 17:50:08 +02:00
Paul Petring a79072d462 fixed tests for cases without enclosure 2015-08-01 15:48:43 +02:00
Paul Petring 76198fdfb0 fixing string encoding issue in rss enclosure length attribute 2015-07-12 02:49:30 +02:00
Paul Petring 57321cf425 added atom enclosure 2015-05-19 23:09:43 +02:00
Markus Zimmermann 639982ed9d author can be nil 2013-12-17 18:39:43 +01:00
Supermighty 2bdcfb1f45 Update rss date format to RFC822 per the spec.
http://cyber.law.harvard.edu/rss/rss.html

"All date-times in RSS conform to the Date and Time Specification of RFC 822,
with the exception that the year may be expressed with two characters or four
characters (four preferred)."
2013-09-20 06:25:27 -04:00
Matthew Dawson c8758ff22d Add the author to the item in an rss feed.
The author was missing from the generated rss feed's items.  This adds it
back, but only uses the name for now.
2013-07-07 12:49:14 -04:00
Jason Moiron 35a01ac849 rename syndicate -> feeds, paths jmoiron/syndicate -> gorilla/feeds 2013-01-18 16:30:37 -05:00
Jason Moiron 852dd01069 add the rest of the atom spec to the atom support, make the output tests actual tests instead of just outputting feeds and inspecting manually, add author back to AtomFeed 2013-01-16 21:58:09 -05:00
Jason Moiron f89ed305d9 add copyright info, add ToXML support for RssFeed & AtomFeed (provided you only want to create those), hide more empty members of atom feed 2013-01-16 21:03:48 -05:00
Jason Moiron 09ecc7cb78 Make RssFeed the channel object, add a lot more fields to the underlying atom implementation 2013-01-16 20:53:51 -05:00
Jason Moiron 04c746fbf7 add pubdate to rss items 2013-01-16 03:17:24 -05:00
Jason Moiron 7b639e9ad5 initial rss 2.0 support 2013-01-16 01:49:38 -05:00
Jason Moiron 4e6bcdd4bb initial commit, general organization and likely broken atom implementation 2013-01-15 17:27:35 -05:00