Skip to content

Support feed item images#41

Merged
elithrar merged 14 commits into
gorilla:masterfrom
gmemstr:master
Nov 8, 2017
Merged

Support feed item images#41
elithrar merged 14 commits into
gorilla:masterfrom
gmemstr:master

Conversation

@gmemstr

@gmemstr gmemstr commented Sep 27, 2017

Copy link
Copy Markdown
Contributor

After some work from myself and florentheobin we've gotten image support for feeds fully done, including tests.

@kisielk kisielk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, just a bit of clean up needed. Also please fix the gofmt failure in Travis.

Comment thread README.md Outdated
@@ -1,9 +1,12 @@
## gorilla/feeds
[![GoDoc](https://godoc.org/github.com/gorilla/feeds?status.svg)](https://godoc.org/github.com/gorilla/feeds) [![Build Status](https://travis-ci.org/gorilla/feeds.png?branch=master)](https://travis-ci.org/gorilla/feeds)
## gmemstr/feeds

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably shouldn’t change this...

Comment thread README.md Outdated
feeds is a web feed generator library for generating RSS, Atom and JSON feeds from Go
applications.

This is a fork by gmemstr which aims to make feeds more "podcast-centered". Essentially making

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed

Comment thread atom.go Outdated
i.Link.Rel = "enclosure"
x.Link = &AtomLink{Href: i.Link.Href, Rel: i.Link.Rel, Type: i.Link.Type, Length: i.Link.Length}
if i.Enclosure != nil && link_rel != "enclosure" {
// if intLength, err := strconv.ParseInt(i.Enclosure.Length, 10, 64); err == nil && intLength > 0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented or code should be removed

Comment thread rss.go Outdated
item.Enclosure = &RssEnclosure{Url: i.Link.Href, Type: i.Link.Type, Length: i.Link.Length}
// Define a closure
if i.Enclosure != nil && i.Enclosure.Type != "" && i.Enclosure.Length != "" {
// if intLength, err := strconv.ParseInt(i.Enclosure.Length, 10, 64); err == nil && intLength > 0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented out code

@gmemstr

gmemstr commented Sep 27, 2017

Copy link
Copy Markdown
Contributor Author

will do shortly - just headee home now. didn't actually expect to make this PR but thanks to florentheobin for the fixed.

@kisielk

kisielk commented Sep 28, 2017

Copy link
Copy Markdown
Contributor

Thanks.

This changes the API, but I think if we tag a release before, we can probably merge this without feeling too guilty.

@elithrar any thoughts on this one?

@elithrar

elithrar commented Sep 28, 2017 via email

Copy link
Copy Markdown
Contributor

@gmemstr

gmemstr commented Nov 7, 2017

Copy link
Copy Markdown
Contributor Author

Bump for this, just saw mux got a new release. Is there anything else I should add to this PR before?

@kisielk

kisielk commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

I'm ok with it going ahead. @elithrar should we tag 1.0 for the current version of the code, and then 1.1 after merging this? though that doesn't really give people an opportunity to lock to 1.0 in the meantime so not sure if it's worth it since their code will break anyway. Maybe we should just do the bandaid pull approach and merge this and then tag 1.0?

@elithrar

elithrar commented Nov 7, 2017 via email

Copy link
Copy Markdown
Contributor

@elithrar elithrar merged commit 4b936b5 into gorilla:master Nov 8, 2017
@elithrar

elithrar commented Nov 8, 2017

Copy link
Copy Markdown
Contributor

@elithrar

elithrar commented Nov 8, 2017

Copy link
Copy Markdown
Contributor

Thanks @gmemstr and @florenthobein for contributing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants