theoldreader / api

The Old Reader API

Home Page:https://theoldreader.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ot for stream/contents not working?

mialwe opened this issue · comments

Hello all,
currently I'm trying to implement the TOR api for an Android app and maybe found an issue while trying to fetch the content stream fo a given subscription:

  • fetching IDs with ot works fine, with and without excluding read items.
  • fetching item contents via stream/contents and ot does not seem to work, request does seem to ignore ot.
  • as soon as xt=user/-/state/com.google/read is included ot seems to work for stream/contents, too.

Example:

Feed has currently 277 unread items, id is feed/52bf118409145252d5000535. crawlTimeMsec for third entry is 1389009717745.

https://theoldreader.com/reader/api/0/stream/contents?output=json&ot=1389009717&s=feed/52bf118409145252d5000535
-> result contains the 15 latest entries. Why?

Same request with added xt=user/-/state/com.google/read:
https://theoldreader.com/reader/api/0/stream/contents?output=json&ot=1389009717&s=feed/52bf118409145252d5000535&xt=user/-/state/com.google/read
-> result contains the 3 latest entry contents as expected.

Am I missing something here?

Hey @mialwe. Thank you for letting us know. It's not a bug actually, it's more like glitch. The thing is that some posts were inserted earlier than unread items, so crawlTime is lesser. If you take a look on crawlTime of returned posts you'll see that it's bigger than your ot parameter so actually it's not ignored.