aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove the search endpointA Farzat7 days2-25/+3
| | | | | | | | | | | It is not the best idea as it is non-deterministic, working on the assumption that searching by ISBN would return the book and in a consistent way. The contents previously extracted from it, such as authors and publishers, are already included in the OPF file which can be fetched from the files list. Further items such as description can be fetched from the metadata endpoint later if needed.
* Convert chapters and file_entries to HashMapsA Farzat7 days1-1/+22
| | | | | | | This makes them more useful as each will be referenced by either spine_items or toc_vec later on. This is demonstrated by the temporary sanity checks, which shall be replaced by code that actually use fields from the corresponding items.
* Add fetching of the spine and table of contentsA Farzat7 days2-3/+42
|
* Refactor away SearchResponse modelA Farzat7 days2-33/+15
| | | | | | | | | | Its functionality is covered by Paginated. The fetch_metadata function was also replaced by the more generic fetch_all_pages. Given that we are searching by the isbn, we should presumably get only 1 result, so only one call will be made even when fetch_all_pages is used. This behaviour is not documented though, so switching to the metadata endpoint in the future is recommended.
* Add file and chapter details fetchingA Farzat7 days2-1/+60
| | | | | | | | | | Fetching file details allows us to download them to the correct location later. Chapter details are currently limited to is_skippable, which might be used to determine whether to make the corresponding spine item non-linear. Other details such as the title shall be fetched from the spine and table-of-contents endpoints later.
* Add e-book metadata fetchingA Farzat7 days4-10/+75
|
* Add authentication using cookiesA Farzat8 days5-7/+2012
|
* Init commit: setup project and cli parsingA Farzat8 days4-0/+222