Quote:
Originally Posted by CasualBookworm
First off, I want to extend a huge thank you for this script! I discovered this thread a few weeks back and, as an avid Pocket user, it has been a game-changer!
|
You're very welcome
Quote:
Originally Posted by CasualBookworm
Code:
convertedf=`expr $convertedf + 1`
|
You might be able to use
$(($convertedf + 1)) instead of
expr here.
Quote:
Originally Posted by CasualBookworm
[*]After processing an article, it creates an empty file in /mnt/onboard/.adds/pocket/processed_articles as a flag and on subsequent runs it will check that directory and skip over any articles that are flagged as already having been processed
|
Instead of having a separate directory for this, would it be possible to store a hidden file inside the article folder, ie.
/mnt/onboard/.adds/pocket/1234567890/.processed? That way Kobo should remove the whole folder once you archive/delete an article and the script could be simplified by ignoring those folders with such a file.
Quote:
Originally Posted by CasualBookworm
[*]It accepts a command line argument that limits it to looking at articles downloaded in the last X days
|
I rarely have more than 20-30 articles on my Kobo, so I never ran into a problem here. In any case, the IM identify command should be quite fast, even with many files to check?
Regardless it does make sense to add some sort of limit. However I'd prefer a number based approach instead of a day based approach. Getting the latest X articles is quite easy, and then you could still check if those were already processed. What do you think?