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

Fix Linking Book cover function #1339

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DoobesURU
Copy link
Contributor

Adjust script to actually use cover image defined in xLinkingBookDefs.py. Fixes #1338

The script currently makes the Relto shelf and some other Books gain the "default" cover and/or extra pages, so it's a draft for now.

Adjust script to actually use cover image defined in xLinkingBookDefs.py
@DoobesURU DoobesURU marked this pull request as draft February 26, 2023 22:55
Comment on lines 530 to 533
if not showOpen and not self.IsThereACover(bookdef):
showOpen = 1
else:
showOpen = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if not showOpen and not self.IsThereACover(bookdef):
showOpen = 1
else:
showOpen = 0
if showOpen and self.IsThereACover(bookdef):
showOpen = 0

Copy link
Contributor

Choose a reason for hiding this comment

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

Also Line 867 if idx > 0: should be if idx >= 0:
Anything other than -1 is true for string find

* New elif line to weed out opened pedestal Books without covers defined. Should fix Books getting default cover for no reason.
@DoobesURU DoobesURU marked this pull request as ready for review December 21, 2023 20: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.

Linking Books and covers
2 participants