Commit graph

203 commits

Author SHA1 Message Date
Billie Thompson
3e3c679e69
If the is no title fallback to an empty string (#98)
in some instances full title can be None, and unicodedata.normalize
requires a string. A better approach might be to work out why title is
None, but this fixes that issue for now.
2022-06-23 13:04:06 +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
Johan Pretorius
a785ff50b9
Added explanation in README.md for creating a second profile (#94) 2022-06-19 08:19:09 +02:00
mkb79
755240d132
licenserequest (voucher) will not request chapter by default #92 2022-06-05 21:19:48 +02:00
mkb79
6061615b23 release v0.2.0 2022-06-01 16:08:26 +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
54a879c52e
Create cmd_listening-stats.py 2022-04-11 07:08:03 +02:00
mkb79
8c11676d54 Allow httpx version 0.20 - 0.22 2022-04-09 19:15:04 +02:00
mkb79
740ccf7f3b
release v0.1.3 2022-03-27 20:08:31 +02:00
mkb79
8537001a79 bump version to v0.1.2 2022-03-27 19:40:54 +02:00
mkb79
0c0506a14e bump Audible to v0.7.1 2022-03-27 19:40:06 +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
93b67d2157
release v0.1.1 2022-03-20 20:43:48 +01:00
mkb79
7d5607357b
Update CHANGELOG.md and bump dev version 2022-03-18 11:37:11 +01:00
mkb79
71f2605f91
fix an issue with requesting download urls for aax files (#62)
In some cases, requesting a download url with the new method fails. It
will give a url but with a wrong codec. These url result in an error,
when downloading these files.
As a workaround I've added the old download url creation method. This
will work until I found a better method!
2022-03-18 11:28:12 +01:00
mkb79
08d8647ec2
fix issue downloading some aax file (#62) 2022-03-18 11:19:41 +01:00
mkb79
673850698c
fix a bug where counting an item if they are not downloaded 2022-03-18 11:16:53 +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
b21d77acab
add build macos binary in onedir mode
MacOS seams to have the same slow startup time in `onefile` mode as on
Windows. Adding a `onedir` package will solve this problem in feature
releases.
2022-03-15 13:51:06 +01:00
mkb79
a178e5cdc4
Update README.md 2022-03-15 10:04:22 +01:00
mkb79
e6ac64c809 Check for update using the --version option 2022-03-12 19:27:17 +01:00
mkb79
e63b5a97b5 remove update-check command 2022-03-12 19:26:42 +01:00
mkb79
5f0b9dfab9 add update-check command 2022-03-11 22:12:00 +01:00
mkb79
99d6d8f854
bump version to v0.1.0 2022-03-11 08:47:50 +01: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
mkb79
64635e446a
Update README.md
Add `audible-cli-flask to known addons
2022-03-08 16:46:32 +01:00
mkb79
4ade6261cf
Bump audible to v0.0.7 2022-01-26 06:38:30 +01:00
mkb79
22c6dc514e
Update build.yml 2022-01-19 13:07:12 +01:00
mkb79
de515aa762 Update building packages 2022-01-18 20:09:40 +01:00
mkb79
9bc65323cc
Release v0.0.9 2022-01-18 13:52:01 +01:00
mkb79
497587f08e
changes on Github action 2022-01-18 13:50:16 +01:00
mkb79
f16a83bfe6
fix bug adding/removing auth file 2022-01-18 13:48:21 +01:00
mkb79
4b23a47d40 Bugfix errors and bump version 2022-01-15 13:04:15 +01:00
mkb79
9eb166b6b7 Bump version to 0.0.7 2022-01-15 12:38:21 +01:00
mkb79
5db2ceab91
Update on cmd_library.py (#53) 2022-01-15 12:31:59 +01:00
mkb79
fe6e1aea09
print out reason on content type mismatch 2022-01-14 07:09:31 +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
586e16732e
Update Download process 2022-01-13 23:11:08 +01:00
mkb79
5ae54591b3
Bugfix cmd_download.py remove shortcut for timeout
I added `-t` as a shortcut for the timeout option. But I have over
seen, that this shortcut is already assigned for the title option.
2022-01-13 19:40:54 +01:00
mkb79
c2198d9a15
Bump dev version 2022-01-13 15:37:08 +01:00
mkb79
636ae0c405
Add timeout option to download command 2022-01-13 15:28:01 +01:00
mkb79
87877dc2f4
Update cmd_library.py 2022-01-13 15:26:54 +01:00
mkb79
7aa96d41be
Update timeout for library command 2022-01-13 15:00:47 +01:00
mkb79
25096e496a Update cmd_library.py 2022-01-13 14:03:17 +01:00