- Added sqlite db for metadata storage
- Changelog: [PR Commit](https://github.com/fichub-cli-contrib/fichub-cli-metadata/commit/04d312b9420078cce64bc20c713001ce29eff55d)
- Added `--migrate-db` option to migrate the db to the new schema
- A new column `fichub_id` has been added to the database
schema. This new command creates a new table with the
updated schema, then inserts the data back from the old table since
in sqlite3, the new column is always appended to the end of the
list of existing columns and doesn't allow ADD column_name
AFTER column_name syntax.
- Added `--download-ebook` option to download ebooks along with the
metadata
- Bugfix: CLI crashes if the API response is "unable to find fic"'
- If a fic metadata is not already present in the fichub database, the
API responses with "unable to find fic" and the CLI crashes.
Added an exception to catch this case and skip the URL
- Added the feature to resume metadata database update using an
`output.log` which keeps track of downloads
- It appends the the URL to the `output.log` and whenever the CLI is restarted,
it checks for pre-existing `output.log` and compares it with input URLs and skips
if there are conflicts.
- Moved this code to the core cli i.e. fichub-cli since it was also
using code and this minimizes redundancy since the plugin can
just import the `check_output_log()` function from the core cli
- Moved `--get-urls` from core cli into the plugin and renamed it
as `--fetch-urls`
- It also saves the output as txt files in the current directory as
`ao3_works_list.txt` and `ao3_series_list.txt`
- Logging to file only when using `--log`
- Loguru was logging was not logging anything to file when using
`--log` unless `--debug` was being used. Now it will only log
to file if `--log` is used
- Changed License from MIT to Apache 2.0