Page 1 of 3

[SOLVED] Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 17:16
by Let_Me_Be
I'm having a problem with several feeds that change last updated date with each comment on the article, so the order becomes completely random.

Can I switch to publish date sorting somehow?

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 17:46
by fox
Disable the option "sort headlines by feed date".

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 17:49
by Let_Me_Be
But that's not what I want either. I want it to be sorted by date, just not the update date, but the publish date instead.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 17:51
by fox
There's no such thing. There's pubdate which comes from the feed and import date tt-rss sets when it sees article first.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 17:57
by Let_Me_Be
Well, yes I want it to be sorted by the pub date, right now it's sorted by the update date (when I select "sort headlines by feed date").

The pub date should sort of match the import date, but not necessarily.

For example this:

http://gdata.youtube.com/feeds/base/users/Drift0r/uploads?alt=rss&v=2&orderby=published

Code: Select all

<pubDate>Fri, 29 Mar 2013 20:00:22 +0000</pubDate><atom:updated>2013-03-30T12:06:41.000Z</atom:updated>

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 17:59
by fox
>The pub date should sort of match the import date, but not necessarily.

I like how you just invent terminology without bothering with any details whatsoever.

>For example this:

tt-rss does not use that atom-specific attribute, unless Simplepie considers it something that should be used instead of pubdate which you need to take to simplepie devs.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:01
by fox
Also, in 1.7.6 the sorting is changed so that pubdate would only mean anything within the update batch, so this discussion is meaningless at this point, because the functionality you are fighting against no longer exists (including the aforementioned option).

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:10
by Let_Me_Be
fox wrote:Also, in 1.7.6 the sorting is changed so that pubdate would only mean anything within the update batch, so this discussion is meaningless at this point, because the functionality you are fighting against no longer exists (including the aforementioned option).


  • I'm using the github version from few days ago
  • I have the "Sort headlines by feed date" option turned on

When I look at this feed:
http://gdata.youtube.com/feeds/base/users/alexKrasny/uploads?alt=rss&v=2&orderby=published

The feed is sorted by the time that is displayed in the web UI. The newest item that I see is:

Code: Select all

<title>How to Tie a Necktie Eldredge Knot</title>
which shows up with today's date and 12:37 time. The item has

Code: Select all

<pubDate>Wed, 21 Nov 2012 05:03:11 +0000</pubDate><atom:updated>2013-03-30T12:20:54.000Z</atom:updated>
So it's not either, although the update date is definitely closer.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:14
by fox
>I have the "Sort headlines by feed date" option turned on

This option is no more. You might need to update.

>The feed is sorted by the time that is displayed in the web UI. The newest item that I see is:

Instead of armchair analysis you can just ask. Default sorting works like this: score, import batch date descending, pubdate descending, in that order. Import batch date is the timestamp at which the feed has started updating.

Important difference: "Newest first" uses pubdate, assuming it is valid.

Oldest first goes by import date and updated in reverse order.

Edit: you can see import date if you hover mouse at timestamp in the headlines list.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:17
by Let_Me_Be
This is how it looks on my screen:

Image

It's getting cropped, click for the full version.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:18
by fox
I really need to do something with people blatantly not reading my posts.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:23
by Let_Me_Be
OK, so that we are talking about the same version I just did an update.

When I select "Oldest First" I end up with the same situation.

All these feeds have the same import timestamp (this is what shows up in the tooltip when I hover over the date).

But where does the time shown in the screenshot come from? It's definitely not the publish date.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:26
by fox
This will only apply to stuff which imports from now on. Previously each article was timestamped on import individually.

>But where does the time shown in the screenshot come from? It's definitely not the publish date.

https://github.com/gothfox/Tiny-Tiny-RS ... s.php#L504 and below.

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:32
by Let_Me_Be
fox wrote:This will only apply to stuff which imports from now on. Previously each article was timestamped on import individually.


But how would this situation happen? The order doesn't make any sense.

Btw. the time keeps changing:
Image

Re: Publish vs. update date when sorting by feed date

Posted: 30 Mar 2013, 18:33
by Let_Me_Be
fox wrote:>But where does the time shown in the screenshot come from? It's definitely not the publish date.

https://github.com/gothfox/Tiny-Tiny-RS ... s.php#L504 and below.


Well, ok, so the question is what does "$item->get_date()" do?