Commit graph

40 commits

Author SHA1 Message Date
mkb79
8dc8739f66
Rework flat chapter option (#201)
* Capitalize chapter type in get_content_metadata function

The get_content_metadata function in audible_cli's models.py file has been updated to capitalize the chapter type parameter. This ensures any case variations in the parameter will pass the assert condition, improving the handling of chapter types and method consistency.

* Update chapter type handling in cmd_download.py

Updated the cmd_download.py file to add a "config" choice to the chapter type and move the declaration of chapter_type to a more appropriate location. Also, the logging message has been updated to include the selected chapter type. This enhances traceability and ensures chapter type is handled consistently.

Flat chapters can be enabled by default in the config file. In the APP or profile section must be a setting `chapter_type = "flat"`.

* Update README with new `chapter_type` option

Updated README.md to include a new `chapter_type` field in both the APP and profile sections. This new field allows users to specify a chapter type for the `download` command with the `--chapter-type` option. If not provided, it defaults to "tree". This change aims to increase customizability for users.

* Update CHANGELOG to include new config file option

The CHANGELOG has been updated to reflect the addition of the ability to set a default chapter type in the config file. This allows the user to specify whether chapters should be downloaded as `flat` or `tree` type without having to state it each time a download command is given.

* Update audible-cli version

Version number has been updated from "0.3.2b2" to "0.3.2b3" in the _version.py file. This indicates a new build of the code that may include minor enhancements or bug fixes.
2024-04-01 13:20:06 +02:00
mkb79
56333360da
docs: Add install guide using pipx to README.md 2024-01-23 22:12:01 +01:00
mkb79
6da1eda757
ci: Update build action (#158)
* ci: update build action

* docs: Update README.md
2023-09-27 10:36:14 +02:00
mkb79
acbfa2da7c
docs: Update README.md (#152) 2023-07-26 07:24:12 +02:00
Johan Pretorius
a785ff50b9
Added explanation in README.md for creating a second profile (#94) 2022-06-19 08:19:09 +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
88cbd94a86 Update README.md 2022-05-17 08:50:35 +02:00
mkb79
1a4ce10850
Correct download links in README.md (#65) 2022-03-22 10:55:25 +01:00
mkb79
c0a1098410
Update README.md 2022-03-21 15:33:20 +01:00
mkb79
0c8e9504d2
Update README.md (#64)
The command is named `pyinstaller` and not `pyinstall`.
2022-03-18 05:49:13 +01:00
mkb79
aace7b38ba
Update README.md 2022-03-15 22:27:22 +01:00
mkb79
621336a94a
Update README.md 2022-03-15 18:00:15 +01:00
mkb79
a178e5cdc4
Update README.md 2022-03-15 10:04:22 +01:00
mkb79
64635e446a
Update README.md
Add `audible-cli-flask to known addons
2022-03-08 16:46:32 +01:00
mkb79
9eb166b6b7 Bump version to 0.0.7 2022-01-15 12:38:21 +01:00
mkb79
8f1107ba9e
Remove binarys
I will publish binarys for Windows and linux on the releases page when
version 0.0.7 is finished.
2022-01-13 23:22:23 +01:00
mkb79
0638ca57fe Update README.md 2022-01-13 09:59:31 +01:00
mkb79
9c289c3681
Using config file for filename_mode preset (#39)
These PR contains a filename mode options when using the `audible download` command.

It can be used in these ways and order:
1. Using `audible download ... --filename-mode ***`
2. Add the `filename_mode` option to the profile section of the config file (using `audible manage config edit`) to use it with these profile.
3. Add the `filename_mode` option to the APP section of the config file (using `audible manage config edit`) to use it on all profiles.
4. If no setting is provided, the `ascii` mode is used (like before)

The filename mode supports these values:
- ascii: Same filename mode like before these changes
- asin_ascii: Add the asin of the book and a underscore before the ascii filename
- unicode: Using a unicode filename scheme.
- asin_unicode: Like unicode but add the asin of the book and a underscore before
2021-11-30 13:49:49 +01:00
mkb79
4256c43bfa
Update README.md 2021-10-22 07:59:50 +02:00
mkb79
bd05955257
Update README.md 2021-10-03 13:41:32 +02:00
mkb79
ce1c030b42
Update README.md
Add information how to install from pypi
2021-10-03 13:20:49 +02:00
iconoclasthero
5884f601bb
Update README.md
Underline activation_bytes is incorrect.

Call `audible -h` to let you show all main subcommands. At this time, there 
are the `activation_bytes`, `download`, `library` and `manage` subcommands. 
The `manage` command has multiple subcommands. So take a look with the 
`audible manage -h` and `audible manage <subcommand> -h`.
2021-09-18 15:18:52 -04:00
mkb79
6f58bcfb5b
update README.md 2021-02-21 23:06:21 +01:00
mkb79
f94655edf1
update README.md 2021-02-21 22:56:49 +01:00
mkb79
31e62e8a81
ADD: quickstart as subcommand for audible
Quickstart can now used with `audible quickstart` too.
2021-01-30 14:12:18 +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
aa208803fb
Add: how-to add code (tab) completion 2021-01-27 10:40:37 +01:00
mkb79
c1a9091302
Update README.md 2021-01-09 10:40:35 +01:00
mkb79
c0e75c962c
Add example of custom cmd to README.md 2020-12-10 15:45:39 +01:00
mkb79
41efe8c2c3
Table doesn't show correctly #2 2020-12-10 13:39:11 +01:00
mkb79
a8b9ceec90
Table doesn't show correctly 2020-12-10 13:32:36 +01:00
mkb79
6ca7b696de
rework audible-cli package / add plugin-cmds 2020-12-10 13:21:31 +01:00
mkb79
76a4b57f92
Merge pull request #3 from mkb79/issue-2
Issue 2
2020-09-23 22:47:33 +02:00
mkb79
da015bf786
update README.md 2020-09-21 22:45:48 +02:00
mkb79
55207f1067
Update README.md 2020-09-21 22:41:45 +02:00
mkb79
42db20eb2f
Update README.md 2020-09-03 13:31:04 +02:00
mkb79
cbdf688556
next try with tables
Writing markdown on ios is a cruel
2020-09-03 13:29:13 +02:00
mkb79
381063ac07
table doesn't show correctly on github, maybe this one 2020-09-03 13:24:05 +02:00
mkb79
74becd1b89
update README.md 2020-09-03 13:17:18 +02:00
mkb79
859345bc39
first step 2020-09-02 15:02:35 +02:00