Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the fetch-lcp command to have two subcommands #15

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

jonathangreen
Copy link
Member

@jonathangreen jonathangreen commented Mar 6, 2024

One that fetches a manifest, and one that fetches the lcp and lcpl files.

…e manifest and one to fetch the underlying LCP file and lcpl license file.
@jonathangreen jonathangreen force-pushed the feature/fetch-lcp-updates branch from 74efcae to d95a41f Compare March 6, 2024 23:36
None, help="Password to present to the OPDS server."
),
username: str = typer.Option(..., "--username", "-u", help="Username or barcode."),
password: str = typer.Option(None, "--password", "-p", help="Password or PIN."),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated these to match the fetch_lcp command, since one took args and one took options. Was a bit confusing when using the two commands back to back.

@@ -1,6 +1,6 @@
# Some defaults
DEFAULT_ASYNC_TIMEOUT = 30.0
DEFAULT_AUTH_DOC_PATH_SUFFIX = "/authentication-document"
DEFAULT_AUTH_DOC_PATH_SUFFIX = "authentication_document"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needed to be updated to be able to use the OPDS Server Heuristic args to patron-bookshelf.

if link.properties
else None
):
print(f" LCP hashed passphrase: {hashed_pw}")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is useful to have included in the output for the bookshelf.

@jonathangreen jonathangreen requested a review from tdilauro March 6, 2024 23:40
Copy link
Collaborator

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎸

@jonathangreen jonathangreen merged commit e21bdcc into main Mar 7, 2024
4 checks passed
@jonathangreen jonathangreen deleted the feature/fetch-lcp-updates branch March 7, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants