Commit Graph

53414 Commits

Author SHA1 Message Date
Kovid Goyal 9bf99dc2b8 ... 2026-04-30 19:38:02 +05:30
Kovid Goyal 4686f9db5b Add quit after jobs finish button to confirm quit dialog 2026-04-29 10:03:37 +05:30
Kovid Goyal 44e40b34f5 Cleanup previous PR 2026-04-29 09:43:45 +05:30
Kovid Goyal 28f6558ad8 Merge branch 'auto-close-jobs' of https://github.com/un-pogaz/calibre 2026-04-29 09:18:50 +05:30
Kovid Goyal 25906e887b Merge branch 'fix-viewer-dark-mode-transition' of https://github.com/ishanray/calibre 2026-04-29 09:10:44 +05:30
ishanray bf30123fb8 Fix viewer not updating dark/light mode on system theme change
When the system color scheme changes (e.g. light to dark), the viewer's
change_color_scheme handler updates opts.color_scheme but never updates
opts.is_dark_theme, which remains at its initialization value.

This causes set_color_scheme_class() to use a stale value, so the
calibre-viewer-dark-colors / calibre-viewer-light-colors class on body
never updates. When override_book_colors is set to 'dark', the CSS
override rule only matches when the dark class is present, so the book
content stays in the old theme.

Fix by updating opts.is_dark_theme from the incoming color scheme data
before calling apply_colors() and set_color_scheme_class().
2026-04-28 12:11:35 -04:00
Kovid Goyal ac76d8793e Bump dependency for CVE 2026-04-28 15:10:42 +05:30
Kovid Goyal ac68b5b41a Merge branch 'dependabot/github_actions/actions-bb489aea0a' of https://github.com/kovidgoyal/calibre 2026-04-28 15:05:11 +05:30
dependabot[bot] bcdf4ebbf8 Bump the actions group with 2 updates
Bumps the actions group with 2 updates: [actions/setup-node](https://github.com/actions/setup-node) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `actions/setup-node` from 6.3.0 to 6.4.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v6.3.0...v6.4.0)

Updates `github/codeql-action` from 4.35.1 to 4.35.2
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4.35.1...v4.35.2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: github/codeql-action
  dependency-version: 4.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-27 20:00:30 +00:00
un-pogaz 815fb4bc30 allow auto close when all jobs finished 2026-04-27 20:02:05 +02:00
Kovid Goyal 05ebcec6a0 Merge branch 'copilot/add-zoom-reset-option' of https://github.com/kovidgoyal/calibre 2026-04-27 06:29:58 +05:30
copilot-swe-agent[bot] cf1073a2e7 Add reset zoom to 100% to preview pane right-click menu
Agent-Logs-Url: https://github.com/kovidgoyal/calibre/sessions/ce72136c-a4a4-4bc6-b03f-711888d9d266

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-27 00:52:29 +00:00
Kovid Goyal 2255f53f63 Remove bad URL from TIME index page 2026-04-26 12:46:36 +05:30
Kovid Goyal a42fb07f5f string changes 2026-04-26 08:56:29 +05:30
Kovid Goyal c6eee1b188 ... 2026-04-25 16:49:46 +05:30
Kovid Goyal 388f978f7d Escape HTML in legacy details page 2026-04-23 17:12:10 +05:30
Kovid Goyal 091b409e3f ... 2026-04-23 09:31:54 +05:30
Kovid Goyal af8a6e142d Dont print useless tracebacks in functiondispatcher 2026-04-23 09:29:30 +05:30
Kovid Goyal eff67da8b8 pep8 2026-04-22 10:40:51 +05:30
Kovid Goyal 1266d39231 Merge branch 'hn-include-comments' of https://github.com/thekabistro/calibre 2026-04-22 10:40:39 +05:30
thekabistro cf74eedf47 Include HN comment threads in the HN With Actual Comments recipe
Comments were only being included for Ask HN posts and other items
whose <link> is already a news.ycombinator.com URL. For frontpage
items the <link> is the submitted article, so the HN thread was never
fetched and no comments showed up in the output.

Pick up the HN thread URL from each feed item's <guid> (with a regex
fallback on the description HTML), then for external articles also
fetch the thread and append a "Hacker News Discussion" section after
the article body.
2026-04-21 21:42:16 -07:00
Kovid Goyal 9e8802f765 Merge branch 'atlantic-reduce-image-size' of https://github.com/thekabistro/calibre 2026-04-22 09:34:01 +05:30
thekabistro cf021eb9b1 Reduce Atlantic output - enable compression and scaling
Brings recipe output from >200MB down to under 5MB. Follows the
convention used by other recipes in this directory.
2026-04-21 20:55:18 -07:00
Kovid Goyal b1da1ce558 Merge branch 'dependabot/pip/lxml-6.1.0' of https://github.com/kovidgoyal/calibre 2026-04-22 07:08:32 +05:30
dependabot[bot] 35d91c8632 Bump lxml from 6.0.2 to 6.1.0
Bumps [lxml](https://github.com/lxml/lxml) from 6.0.2 to 6.1.0.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-6.0.2...lxml-6.1.0)

---
updated-dependencies:
- dependency-name: lxml
  dependency-version: 6.1.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-21 23:04:02 +00:00
Kovid Goyal 0e529de1b2 Cleanup previous PR 2026-04-21 20:34:26 +05:30
Kovid Goyal 7bf64008b1 Merge branch 'legacy-book-fix' of https://github.com/lgdeysel1980/calibre 2026-04-21 20:34:22 +05:30
Kovid Goyal 22bd50ee6a Ignore inapplicable CVE 2026-04-21 19:33:20 +05:30
Kovid Goyal 7b7a1c6b94 Cleanup previous PR 2026-04-21 19:25:50 +05:30
Kovid Goyal a27bef2f75 Merge branch 'fix/security-and-quality-issues' of https://github.com/collaed/calibre 2026-04-21 19:17:39 +05:30
lgdeysel1980@gmail.com be839bf8ca Fix legacy book details endpoint routing and rendering; improve mobile styling 2026-04-21 13:55:52 +02:00
ECB b0c4ba1968 Fix security vulnerabilities and code quality issues
High severity:
- Fix typo normapth -> normpath in srv/content.py (broken endpoint)
- Replace eval() with ast.literal_eval() in catalogs/epub_mobi.py
- Log exceptions in FunctionDispatcher.dispatch instead of swallowing

Medium severity:
- Add path traversal protection to DirContainer read/write/exists
- Fix XPath injection in comments_editor.py merge_contiguous_links
- Use parameterized SQL queries in database2.py library_id setter
- Add safety comment to pickle_loads in utils/serialize.py
2026-04-21 12:48:42 +02:00
Kovid Goyal d525f24df9 Merge branch 'dependabot/github_actions/actions-9b1d3b94f9' of https://github.com/kovidgoyal/calibre 2026-04-21 07:59:49 +05:30
dependabot[bot] d7877524da Bump the actions group with 2 updates
Bumps the actions group with 2 updates: [actions/setup-node](https://github.com/actions/setup-node) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `actions/setup-node` from 6 to 6.3.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v6...v6.3.0)

Updates `github/codeql-action` from 4 to 4.35.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4...v4.35.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: github/codeql-action
  dependency-version: 4.35.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-20 18:36:57 +00:00
Kovid Goyal 9e257ecc66 Merge branch 'docs/custom-lookup-sources' of https://github.com/fedesapuppo/calibre 2026-04-20 08:10:44 +05:30
Kovid Goyal 8f06486231 Merge branch 'master' of https://github.com/georgeflug/calibre 2026-04-20 07:57:19 +05:30
Richard White bfda51433a update sciam feed names and page order to match print edition 2026-04-19 20:52:43 -05:00
Federico Sapuppo 8c80541cc8 Manual: document custom lookup sources in the viewer 2026-04-19 21:58:29 -03:00
Kovid Goyal 38548b7c9d Merge branch 'patch-1' of https://github.com/naudvard/calibre 2026-04-19 20:35:12 +05:30
naudvard fcf6a2cb25 Change 'email' field to 'username' in login mediapart.recipe 2026-04-19 16:57:38 +02:00
Kovid Goyal 9fba48765a Remove some eval() calls
They are perfectly harmless but I dont want to have to deal with endless
cargo cult security advisories about them.
2026-04-19 12:03:52 +05:30
Kovid Goyal f980061249 ... 2026-04-18 14:07:58 +05:30
Kovid Goyal 3774c1b15b Bump sqlite for CVE 2026-04-18 13:44:29 +05:30
Kovid Goyal d3476ddaeb DRYer 2026-04-18 12:56:38 +05:30
Kovid Goyal 49d1847d92 macOS Tahoe: Have the calibre app icon automatically use a dark look when the system is in dark mode
Uses the new Liquid Glass infrastructure to generate the application
icons using actool which means icons have to be generated on a mac, but
that is done via a one-time script not per build. I could change it to
be done per build, but not needed and doing it that way makes iterating
on icon design too slow.
2026-04-18 12:17:31 +05:30
Kovid Goyal d889ac1b89 Merge branch 'dry-render-count' of https://github.com/un-pogaz/calibre 2026-04-17 17:10:56 +05:30
un-pogaz ad798fc988 DRY 2026-04-17 11:29:52 +02:00
Kovid Goyal 4dee44efa0 ... 2026-04-17 14:33:10 +05:30
Kovid Goyal c55afe2737 Dont generate toc in icns files as iconutil doesnt either 2026-04-17 14:01:09 +05:30
Kovid Goyal 771315bb3e Fix multiprocessing forkserver not working with python 3.14.4
Because of this: https://github.com/python/cpython/pull/148195
2026-04-17 13:48:56 +05:30