Author and source feed in gReader

9 views
Skip to first unread message

Emmanuel Pire

unread,
Nov 17, 2011, 2:27:29 PM11/17/11
to shar...@googlegroups.com
Sad news:

I just added source and author to lipsumarium feeds. (will only apply to feeds shared from now on. also you need to refresh reader)

like this:
<item>
[...]
<dc:creator>Florence</dc:creator>
<source url="http://www.gizmodo.fr/">Gizmodo</source>
</item>

But guess what, doesn't appear :(

Try to share a new item, then look at the RSS code and at reader :(




--
Emmanuel Pire
Web development
http://lipsumarium.com/

Alex Chaffee

unread,
Nov 17, 2011, 2:50:06 PM11/17/11
to Emmanuel Pire, shar...@googlegroups.com
Alex K reports that Google Reader does a better job at displaying
source info from an Atom feed.

Also, what version of RSS are you emitting?

- A

> --
> The Sharebro Google Group: for http://sharebro.org and related development
> http://groups.google.com/group/sharebro for archives and options
>

--
Alex Chaffee - al...@stinky.com
http://alexchaffee.com
http://twitter.com/alexch

Emmanuel Pire

unread,
Nov 17, 2011, 2:55:26 PM11/17/11
to Alex Chaffee, shar...@googlegroups.com
<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0">

Emmanuel Pire

unread,
Nov 18, 2011, 2:06:02 PM11/18/11
to Alex Chaffee, shar...@googlegroups.com
I inspected the gReader DOM and it seems the shared feeds were handled quite differently than normal feeds.
in collapsed mode, they had source name at the left;
when item is open, they had something like "from SomeSource by author" 

but you don't get that in normal feed because if you read the feed "SomeSource", you already know the source is SourceFeed.

also, after i added support for source feed and author, i noticed a problem: if I share an item, than the source will be ok. but then, if you re-share my shared item, the source will be your feed, not the source feed.

I could include a first paragraph in every item saying:
"from SomeSource by author" 
with link on the source.

wdyt ?

Emmanuel Pire

unread,
Nov 20, 2011, 9:49:53 AM11/20/11
to shar...@googlegroups.com
Of course inserting a <p> tag to mimic gReader old feature is not good.
That's why I didn't implement but asked about it.

The point is that even it is in metadata, gReader won't show these informations. Let me explain:
Imagine something like the "New York Times" feed. when you read this feed, or any other feed actually you read items from a single source. no need to show the source in every item.
In old shared feeds, the source was different for every item, thus the need for the UI to change a bit and show the source for every item.
(Note that this mode is still available, when you look at different feeds at once, in a folder)

An other trick is that when i share from NYT's feed, the source is NYT's feed.
But then if you re-share this, the source (for gReader) will be my shared feed.



On Sun, Nov 20, 2011 at 3:31 PM, Alex Chaffee <al...@stinky.com> wrote:
On Fri, Nov 18, 2011 at 11:06 AM, Emmanuel Pire <pirem...@gmail.com> wrote:
> I inspected the gReader DOM and it seems the shared feeds were handled quite
> differently than normal feeds.

Not surprising. They possess info that normal items do not, so it was
probably easier for the devs to write them from scratch.


> in collapsed mode, they had source name at the left;
> when item is open, they had something like "from SomeSource by author"
> but you don't get that in normal feed because if you read the feed
> "SomeSource", you already know the source is SourceFeed.
> also, after i added support for source feed and author, i noticed a problem:
> if I share an item, than the source will be ok. but then, if you re-share my
> shared item, the source will be your feed, not the source feed.
> I could include a first paragraph in every item saying:
> "from SomeSource by author"
> with link on the source.
> wdyt ?

That's all confusing to me. I don't understand you, but I think you're
trying to do with text what should be done with metadata.

Which might be a last resort, but that would be sad.

Emmanuel Pire

unread,
Nov 20, 2011, 10:05:19 AM11/20/11
to shar...@googlegroups.com
>Can you walk up the DOM? I see a <div id="title-and-status-holder">
>that has some nice juicy stuff in it. At least the title and url of
>the feed's source.

Sure found everything i need in the DOM. I also store it now. source url (site, not feed), source name and author.
I also managed to get the feed url but thought the site was more useful. tbd.

I serve it in the feeds items too. it's up to the reader app to display it.

Will take a look at Atom feed too.


On Sun, Nov 20, 2011 at 4:01 PM, Alex Chaffee <al...@stinky.com> wrote:
On Sun, Nov 20, 2011 at 6:49 AM, Emmanuel Pire <pirem...@gmail.com> wrote:
> An other trick is that when i share from NYT's feed, the source is NYT's
> feed.
> But then if you re-share this, the source (for gReader) will be my shared
> feed.

Yes, and I believe Alex K discovered that Reader may be better about
this for Atom feeds than for RSS feeds. I (still!!!) haven't gotten
into the feed code to figure this out better... I've been up in
subscription land.

Emmanuel Pire

unread,
Nov 20, 2011, 10:27:38 AM11/20/11
to shar...@googlegroups.com
well in each feed there is a a.entry-source-title
you can get the feed url from there.

The site url, you get it from span#chrome-title a

On Sun, Nov 20, 2011 at 4:24 PM, Alex Chaffee <al...@stinky.com> wrote:
Feed URL is awesome. WANT!
> --
> The Sharebro Google Group: for http://sharebro.org and related development
> http://groups.google.com/group/sharebro for archives and options
>



Reply all
Reply to author
Forward
0 new messages