Skip to content

fix: Make archive and ebook thumbnail renderers case-insensitive. - #1510

Open
Sola-ris wants to merge 1 commit into
TagStudioDev:mainfrom
Sola-ris:fix/archive-ebook-case-insensitive
Open

Sola-ris wants to merge 1 commit into
TagStudioDev:mainfrom
Sola-ris:fix/archive-ebook-case-insensitive

Conversation

@Sola-ris

Copy link
Copy Markdown
Contributor

Summary

Make archive and ebook thumbnail renderers case-insensitive by converting their extensions to lower-case.
Fixes #1509

Before

before

After

after

Files used for testing

samples.zip

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

pages = [f for f in archive.namelist() if f != "ComicInfo.xml"] # pyright: ignore[reportUnknownVariableType]
page_name = pages[int(unwrap(cover.get("Image")))] # pyright: ignore[reportUnknownVariableType]
ext = Path(page_name).suffix
ext = Path(page_name).suffix.lower()

@Sola-ris Sola-ris Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm intentionally not checking for the stem here, since comics with a ComicInfo.xml should only contain it and the (numbered) images so if there's a file without an extension the renderer wouldn't work properly anyways

This branch has not been deployed

No deployments
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.

[Bug]: Ebook and archive thumbnail renderers are case-sensitive

1 participant