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

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 17:16

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?
Last edited by Let_Me_Be on 30 Mar 2013, 19:37, edited 1 time in total.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

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

Postby fox » 30 Mar 2013, 17:46

Disable the option "sort headlines by feed date".

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 17:49

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.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

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

Postby fox » 30 Mar 2013, 17:51

There's no such thing. There's pubdate which comes from the feed and import date tt-rss sets when it sees article first.

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 17:57

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>

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

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

Postby fox » 30 Mar 2013, 17:59

>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.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

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

Postby fox » 30 Mar 2013, 18:01

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).

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 18:10

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.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

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

Postby fox » 30 Mar 2013, 18:14

>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.

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 18:17

This is how it looks on my screen:

Image

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

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

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

Postby fox » 30 Mar 2013, 18:18

I really need to do something with people blatantly not reading my posts.

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 18:23

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.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

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

Postby fox » 30 Mar 2013, 18:26

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.

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 18:32

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

User avatar
Let_Me_Be
Joy Division
Posts: 18
Joined: 30 Mar 2013, 17:13

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

Postby Let_Me_Be » 30 Mar 2013, 18:33

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?


Return to “Comedy bistro”

Who is online

Users browsing this forum: No registered users and 0 guests