Commit graph

23 commits

Author SHA1 Message Date
vwkd
e82aa52c02
add overwrite option to decrypt command (#176) 2024-01-09 16:39:55 +01:00
vwkd
8bb611e5db
Add -f, --force-rebuild-chapters option to decrypt (#175) 2024-01-09 15:42:46 +01:00
mkb79
59ec48189d
Delete cmd_remove-encryption.py
Added new cmd_decrypt.py file in plugin_cmds
2023-02-23 15:33:18 +01:00
mkb79
9bbfa5c1a4
Create cmd_decrypt.py 2023-02-23 15:32:17 +01:00
mkb79
709baa3b7a
rework cmd_remove-encryption plugin command
- decrypting aaxc files: now looks for chapter information in the
chapter file if they are not in the voucher file
- adding `-r` shortcut to `--rebuild-chapters` flag
- adding `--separate-intro-outro, -s` flag
- adding `--ignore-missing-chapters, -t` flag
- to reach the same behave like before this update, provide `-rst` flag
- the ffmpeg command now uses `-v quiet` and `-stats` flag to reduce
output
2022-07-21 14:59:56 +02:00
Billie Thompson
8582396b03
Support nested chapters (#102)
Relates-to: #99
2022-06-23 13:03:04 +02:00
Billie Thompson
0fef098bd7
Currently paths with dots will break the decrypt this correct that (#97)
This problem is caused by "with_suffix" replacing the suffix and not
just adding a new suffix on the end. We can fix this by adding the
"json" to the with_name, so it doesn't remove everything after the first
".".

Co-authored-by: mkb79 <mkb79@hackitall.de>
2022-06-22 06:45:22 +02:00
Billie Thompson
5769460983
Allow book tiltes with hyphens (#96)
Currently we take the first value before the hyphen, unfortunately books
sometimes have hyphens in the titles meaning that the command will fail.
A simple fix for this is to limit the number of splits that we do once
we have found the end delimiter.
2022-06-22 06:38:41 +02:00
mkb79
90707a8817
v0.2 (#80)
# Added

- `--aax-fallback` option to `download` command to download books in aax format and fallback to aaxc, if the book is not available as aax
- `--annotation` option to `download` command to get bookmarks and notes
- `questionary` package to dependencies
- `add` and `remove` subcommands to wishlist
- `full_response_callback` to `utils`
- `export_to_csv` to `utils`
- `run_async` to `decorators`
- `pass_client` to `decorators`
- `profile_option` to `decorators`
- `password_option` to `decorators`
- `timeout_option` to `decorators`
- `bunch_size_option` to `decorators`
- `ConfigFile.get_profile_option` get the value for an option for a given profile
- `Session.selected.profile` to get the profile name for the current session
- `Session.get_auth_for_profile` to get an auth file for a given profile
- `models.BaseItem.create_base_filename` to build a filename in given mode
- `models.LibraryItem.get_annotations` to get annotations for a library item

# Changed

- bump `audible` to v0.8.2 to fix a bug in httpx
- rework plugin examples in `plugin_cmds`
- rename `config.Config` to `config.ConfigFile`
- move `click_verbosity_logger` from `_logging` to `decorators` and rename it to `verbosity_option`
- move `wrap_async` from `utils` to `decorators`
- move `add_param_to_session` from `config` to `decorators`
- move `pass_session` from `config` to `decorators`
- `download` command let you now select items when using `--title` option

# Fixed

- the `library export` and `wishlist export` command will now export to `csv` correctly
2022-05-25 14:56:41 +02:00
mkb79
54a879c52e
Create cmd_listening-stats.py 2022-04-11 07:08:03 +02:00
mkb79
5492a8ae13
v0.1.0 (#59)
# Added

- add the `api` command to make requests to the AudibleAPI
- a counter of downloaded items for the download command
- the `--verbosity/-v` option; default is INFO
- the `--bunch-size` option to the download, library export and library list subcommand; this is only needed on slow internet connections
- `wishlist` subcommand
- the `--resolve-podcasts` flag to download subcommand; all episodes of a podcast will be fetched at startup, so a single episode can be searched via his title or asin
- the `--ignore-podcasts` flag to download subcommand; if a podcast contains multiple episodes, the podcast will be ignored
- the`models.Library.resolve_podcasts` method to append all podcast episodes to given library.
- the `models.LibraryItem.get_child_items` method to get all episodes of a podcast item or parts for a MultiPartBook.
- the`models.BaseItem` now holds a list of `response_groups` in the `_response_groups` attribute. 
- the`--format` option to `library export` subcommand
- the `models.Catalog` class
- the `models.Library.from_api_full_sync` method to fetch the full library

# Changed

- the `--aaxc` flag of the download command now try to check if a voucher file exists before a `licenserequest` is make (issue #60)
- the `--aaxc` flag of the download command now downloads mp3/m4a files if the `aaxc` format is not available and the `licenserequest` offers this formats
- the `download` subcommand now download podcasts
- *Remove sync code where async code are available. All plugins should take care about this!!!*
- Bump `audible` to v0.7.0
- rebuild `models.LibraryItem.get_aax_url` to build the aax download url in another way 
- `models.BaseItem.full_title` now contains publication name for podcast episodes
- `models.LibraryItem` now checks the customer rights when calling `LibraryItem._is_downloadable`
- `models.BaseItem` and `models.BaseList` now holds the `api_client` instead the `locale` and `auth`
- rename `models.Wishlist.get_from_api` to `models.Wishlist.from_api`
- rename `models.Library.get_from_api` to `models.Library.from_api`; this method does not fetch the full library for now

# Misc

- bump click to v8

# Bugfix

- removing an error using the `--output` option of the `library export` command
- fixing some other bugs
2022-03-11 08:44:02 +01:00
Lucian Maly
b7915e58f9
Update cmd_image-urls.py (#32)
This change allows to also download covers of audio books that are not in your library
2021-09-30 08:22:56 +02:00
mkb79
6d6e017c5f
update convert_oa_cred.py 2021-03-01 13:30:47 +01:00
mkb79
76d41171a8
Add a plugin to convert a OpenAudible credential file 2021-03-01 11:42:19 +01:00
mkb79
c9df40c59c
Delete cmd_remove-encryption.py.bak 2021-02-21 00:26:50 +01:00
mkb79
9306131291
fix issue#12 2021-02-20 23:37:17 +01:00
mkb79
c8967693b0
Solve issue #12 2021-02-19 08:47:48 +01:00
mkb79
ddf84febdb
add cmd_remove-encryption.py to plugins
This plugin is a proof-of-concept and needs development.
2021-01-28 21:28:09 +01:00
mkb79
94d5f50eb7
Update plugin_cmds/README.md 2021-01-28 20:18:46 +01:00
mkb79
044e856afb Recode package
# Added

- Set a custom plugin dir via environment variable
- Provide plugin packages where commands can hook in audible command.

# Changed

- Plugin commands are now placed in the command root instead of ``plugin-cmds`` subcommand. So replacing of build-in commands are possible.

# Removed

- The `--config`` option. A custom config dir can now only be set via environment variable.
- The `--plugins`` option. A custom plugin dir can now only be set via environment variable

# Misc

- Some code optimations
2021-01-28 17:24:38 +01:00
mkb79
8907f42ed2
add comment to plugin-cmd cmd_activation-bytes.py 2021-01-23 01:24:37 +01:00
mkb79
4fbaac6348
Add plugin_cmds/README.md 2021-01-09 10:40:08 +01:00
mkb79
238c2e4c9e
Add: plugin commands folder with examples 2021-01-08 23:36:48 +01:00