-
Notifications
You must be signed in to change notification settings - Fork 81
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
Conversation
Adjust script to actually use cover image defined in xLinkingBookDefs.py
if not showOpen and not self.IsThereACover(bookdef): | ||
showOpen = 1 | ||
else: | ||
showOpen = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not showOpen and not self.IsThereACover(bookdef): | |
showOpen = 1 | |
else: | |
showOpen = 0 | |
if showOpen and self.IsThereACover(bookdef): | |
showOpen = 0 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A very belated review.....
Adjust script to actually use cover image defined in
xLinkingBookDefs.py
. Fixes #1338The 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.