Quote:
Originally Posted by TnS
So just make sure if I understand it correctly:
1) you have 71 non-archived books but list --all doesn't list them all
2) get --all downloads even less books than that are listed on the incomplete list made by list --all
3) after you deleted (?) that Japanese book the downloading still stopped after the same two books and there wasn't any error message
There is a difference between get --all and list --all, the latter sorts the list before displaying it. If you are adventurous you could try deleting or commenting out the following line in Commands.py:
Code:
rows = sorted( rows, key = lambda columns: columns[ 1 ] )
Then check if the first two books returned by list --all are the same that were successfully downloaded. What happens if you use get one by one?
|
1. Yes. Of the ~1398 books between library and archived, list --all and get --all shows ~300 of which 2 are not archived.
2. No. list --all returns only two books that are not archived. get --all downloads those two books.
3. Correct. I now get 1 less book returned by list --all and get --all.
When I pull both lists into Excel and then sorting, both lists contain the same books.
After I deleted the Japanese language book, both get and list returned one less result. No error message was displayed. Note the only two books are shown without the (archived) in list view are downloaded with get --all so that at least is consistent.
If I grab the book ID from the Kobo desktop application's kepub directory, the manual download works. The example below downloads The Icarus Hunt which does not show in either of the --all views.
Code:
python kobo-book-downloader get /kobo-book-downloader/books/ 7a19e0a2-4842-4160-bac6-9cfa960e6e95
As an experiment, I did a batch file which stepped through a list generated by a dir of the Kobo app's kepub directory and it successfully downloaded all 71 books. Some of the books that returned multiple authors did not have the book title in the file name (
Evil is a Matter of Perspective as an example).
It appears that for some reason, my system is not returning all the results when using --all. Python version is 3.6.3 64 bit under Windows 10 x64.