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

-m option does not seem to be working #107

Open
sksk1953 opened this issue Feb 3, 2024 · 2 comments
Open

-m option does not seem to be working #107

sksk1953 opened this issue Feb 3, 2024 · 2 comments

Comments

@sksk1953
Copy link

sksk1953 commented Feb 3, 2024

Hi,
Thank you for creating and maintaining such a wonderful program.
I noticed that -m option does not seem to be working.
I added -m to my download string and expected to see a json file created along with a pdf.
But I did not get any json file. I also tried --meta but no json file, either.
Is it a bug or am I doing something wrong?
Thank you in advance.
sk

@MiniGlome
Copy link
Owner

For now the metadata.json file is written in the temporary file where the images are downloaded, so the -m option only works with -j option because otherwise the temporary folder is deleted.
Note that the metadata are added to the pdf file when it is created so the need to keep the metadata in a file should be very specific.

@sksk1953
Copy link
Author

sksk1953 commented Feb 3, 2024

Hi,
Thank you for the quick response. I download books in non-English language (in my case, Japanese). I would like to add book title, author name, and publisher in Japanese to filename for easy search. Often times (but not always), I can get them from title-alt-script, creator-alt-script, and publisher fields in metadata. Of course, I can go to the page for that book or ia metadata + jq to get the same info but if it is available as an option for pdf, I would like to use that.
Thanks.

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

No branches or pull requests

2 participants