]> Some of my projects - localmylist.git/commit
Take pending MyList updates into account when choosing the first unwatched file.
authorAPTX <marek321@gmail.com>
Tue, 18 Aug 2015 20:13:10 +0000 (22:13 +0200)
committerAPTX <marek321@gmail.com>
Tue, 18 Aug 2015 20:13:10 +0000 (22:13 +0200)
commitea9a275a006a2f09efb57ccbdeae01a312499f8b
tree3ed262691da8165ccefd0eab8735b135cb5d11af
parent555f9a4436538998a401b582efaed4d846f47bf5
Take pending MyList updates into account when choosing the first unwatched file.

Pending MyList update changes are only written to the my_*
fields when a the UDP API confirms it's been set.
If the UDP API doesn't work for some reason firstUnwatchedByAid
will keep returning the same file until AniDB confirms the change.

To work around this, firstUnwatchedByAid now checks if a file isn't
queued to be marked watched right now (an update without a finished
time set). If it is, the file is treated as watched.

This only works in the simple case where a file is marked watched
by fid. It's the method MyList::markWatched uses. All other methods
aren't available outside of manually preparing a PendingMyListUpdate.
localmylist/database.cpp