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

Make the attributes id and has_cover 'official' calibre metadata … #2458

Closed
wants to merge 1 commit into from

Conversation

cbhaley
Copy link
Contributor

@cbhaley cbhaley commented Sep 29, 2024

…attributes. This allows them to be copied by mi.deepcopy_metadata().

The problem was exposed by a kiwidude plugin "Search the Internet". After a deepcopy_metadata() a template using '{id}' failed with 'unknown field'.

I don't think this change will break anything. If you are worried then reject the PR. The problem has been there since forever, so it clearly is not a burning problem.

…ibutes. This allows them to be copied by deepcopy_metadata().

The problem was exposed by a kiwidude plugin "Search the Internet". After a deepcopy_metadata() a template using "{id}" failed with "unknown field".

I don't think this change will break anything. If you are worried then reject the PR. The problem has been there since forever, so it clearly is not a burning problem.
@kovidgoyal
Copy link
Owner

I dont think this is a good idea, it's very widely used and predicting all the effects of the change is very difficult. There is already db_id for the book_id. Maybe the template language can be changed to fallback to that if id is missing? Also your commit seems to add only id not has_cover.

@kovidgoyal kovidgoyal closed this Sep 29, 2024
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