mmagnus / Pocket-Plus-Calibre-Plugin

📚 Modified version of the Calibre plugin for Pocket. Now, you get your articles organized by your Pocket tags, and more!
269 stars 24 forks source link

sort order options #25

Closed ssd2 closed 4 years ago

ssd2 commented 4 years ago

For most tags, sorting oldest or newest is great. However, I've got a few tags where sorting by title (or post date rather than bookmark date?) would be a lot better. I don't know if there are other useful sortable attributes.

This would be a great enchancement.

mmagnus commented 4 years ago

OK, I got something to sort by title things that are downloaded based on your config.

So this is important! The articles are sorted after being downloaded, so this does not work on articles in Pocket. So if you MAX_ARTICLES_PER_FEED = 2 for example, first it will fetch 2 articles based on your configuration and they will be sorted.

So this might do what you want, but this depends on all of these variables:

MAX_ARTICLES_PER_FEED = 30 
OLDEST_ARTICLE = 7
SORT_METHOD = 'newest'
TO_PULL = 'unread'
ssd2 commented 4 years ago

For the tags I'd like to sort by title, the number of articles is less than MAX_ARTICLES_PER_FEED so that's not too big of a deal.

mmagnus commented 4 years ago

Yeah, this is what I thought.

So this is what you wanted? :-) @ssd2

ssd2 commented 4 years ago

I'll have to test it again. First time I tested, it didn't succeed in downloading any articles for some reason.

mmagnus commented 4 years ago

OK, let me know if it works, if not, then I will re-open this issue :-)