Commit Graph
64 Commits
Author SHA1 Message Date
CaliBrain 93e15cbdd0 Fix tor log file getting removed (#157) 2025-04-22 11:15:15 -07:00
CaliBrain 88a95fe15e Try to fix TOR for older devices (#154) 2025-04-21 12:12:50 -04:00
CaliBrain 2b32c1cb95 Use legacy iptables for older systems (#153) 2025-04-20 21:20:41 -04:00
CaliBrain 072bd955e9 Fix git build version (#150) 2025-04-20 06:46:10 -04:00
CaliBrain 0f872f9795 Fix recording_dir typo (#149)
Fix for #148
2025-04-20 06:40:37 -04:00
CaliBrain 712f71a466 Add DEBUG button (#147) 2025-04-20 05:32:11 -04:00
Jacob Wolfe 05744eb256 Stop Gunicorn from Giving Up on Slow Tor Requests (#146)
I tried running the docker-compose.yml referenced in this comment
https://github.com/calibrain/calibre-web-automated-book-downloader/issues/120#issuecomment-2816539268
from issue #120 and was able to reproduce the same 'Server is not
responding' error. I found the issue would happen whenever the captcha
bypass took more than 30 seconds due to tor's slower connection. Adding
-t 300 would let gunicorn wait up to 5 minutes now.
2025-04-19 12:14:22 -04:00
CaliBrain 270fe7ae6b Fix tor (#145)
Add proper version in the container, and fix tor logging and
inconsistent flag
2025-04-19 01:33:58 -04:00
Jacob Wolfe 0be0c8f665 Fix cwa-book-downloader Permission Issues (#143)
Fix permission issues that occur if user forgets to create the
`cwa-book-downloader` folder before creating the docker container since
docker makes the directory with root ownership.
2025-04-19 00:57:34 -04:00
CaliBrain 0ba7031a83 Fix download + add test + fix book move (#140) 2025-04-16 11:18:03 -04:00
Jacob Wolfe 68f5464a88 Fix: Stop sudo -E from overwriting HOME environment variable (#138)
`sudo -E` was replacing `appuser`'s `$HOME` environment variable of
`/app` with `/root` causing permission issues when selenium tried to
write to `~/.cache/selenium`. This fixes [issue
#130](https://github.com/calibrain/calibre-web-automated-book-downloader/issues/130)
by allowing Driver from seleniumbase to successfully return instead of
timing out on line 172 in `cloudflare_bypasser.py`.
2025-04-16 10:56:19 -04:00
CaliBrain 747972180d Deep debug (#136) 2025-04-15 21:49:20 -04:00
CaliBrain 00d0a2e7c3 more debug logging (#135) 2025-04-15 10:52:25 -04:00
CaliBrain 954262fb2f Adding chrome logging (#134) 2025-04-15 08:43:45 -04:00
CaliBrain c2decb8c4f Add timezone fallback for tor container (#133) 2025-04-15 08:14:08 -04:00
CaliBrain 0a553e6794 Swap tor dev and prod cap_add (#132) 2025-04-15 07:42:42 -04:00
CaliBrain 13ad1d5f99 Fix dual routes bug in prod (#129) 2025-04-14 12:25:31 -04:00
CaliBrain 7dbc937507 Adding timeout to pyrequests (#127)
Fix #124
2025-04-13 13:04:54 -04:00
CaliBrain 666d7ba849 Refactor Cloudflare Bypass & Fix Bugs (#126) 2025-04-13 13:01:15 -04:00
CaliBrain 57f15b4d95 Tor support, use SeleniumBase instead of DrissionPage (#123)
Refactor: Improve Docker build, add Tor support, use SeleniumBase

- Overhauled Dockerfile:
    - Switched to python:3.10-slim base.
    - Implemented multi-stage builds (base, standard, tor).
    - Consolidated RUN layers for efficiency.
    - Added locale/timezone setup.
- Added Tor setup and iptables configuration in dedicated stage/script.
- Replaced DrissionPage with SeleniumBase for Cloudflare bypassing.
- Added Tor support via `docker-compose.tor.yml` and `tor.sh` script.
- Updated `docker-compose.yml` to build locally and changed default port
to 8083.
- Added `docker-compose.dev.yml` and `docker-compose.tor.dev.yml`.
- Updated `entrypoint.sh` for timezone and sudo usage.
- Added/Updated environment variables (`TZ`, `USING_TOR`, etc.).
- Improved `.dockerignore`.
- Updated `readme.md` to reflect port changes, build process, document
`TZ`, and add details about the new Tor variant.
2025-04-13 02:34:39 -04:00
CaliBrain e0e7470ac6 Add Backup method to move book after download (#119)
Fix #118
2025-04-04 18:10:08 -04:00
CaliBrain e29ccb7606 Try to match any z-lib domain for now (#117)
Should fix #116
2025-04-04 13:33:51 -04:00
CaliBrain d4ba269c3f DOH for Chromium (#113) 2025-03-29 17:43:46 -04:00
CaliBrain 38237c95ba DOH IP FIX (#112)
- Add Private IP ranges for local IP check
- Skip IP in Resolution
2025-03-29 12:07:43 -04:00
CaliBrain 785a1cd7c4 Fix order of imports (#111) 2025-03-29 11:52:45 -04:00
CaliBrain 05f2084a7b Fix typo in docker-compose.dev (#109) 2025-03-29 03:40:06 -04:00
CaliBrain 5b2b640937 DNS (#108)
This should help fix #106 #103
2025-03-29 03:36:34 -04:00
CaliBrain 93a3481750 Fix errors and improve logging (#102)
Fix #100
Fix #101
2025-03-22 17:35:12 -04:00
CaliBrain c2e7acd473 Use a tmp name while downloading files (#99)
Should help with #98
2025-03-20 00:56:54 -04:00
DanielandDaniel Egberts b93bdd59ac Soft fail for chown in entrypoint.sh (#97)
Co-authored-by: Daniel Egberts <daniel@MacBook-Pro-van-Daniel.local>
2025-03-17 14:47:53 -04:00
CaliBrain 392a8b5262 feat: add USE_BOOK_TITLE option for customizing download filenames (#95)
Implements #94
2025-03-16 14:42:19 -04:00
CaliBrain 909f4b403c Multiple bug fixes (#93) 2025-03-16 03:33:59 -04:00
CaliBrain 5002b1535b Fix: filter (#92)
Fix #84
2025-03-16 03:11:34 -04:00
CaliBrain 0f7d4292a4 feat: implement dark mode with improved UI contrast and full-height layout (#91)
- Add theme toggle (light/dark/auto)
- Improve text contrast and readability
- Fix viewport height issues
- Ensure consistent styling across components
2025-03-16 03:00:56 -04:00
CaliBrain d5b2e24423 feat: Add CUSTOM_SCRIPT documentation and implementation details (#90) 2025-03-16 02:40:09 -04:00
CaliBrainandmik593 3a92c5de78 CF BYPASS (#24)
The Calibre dependency was due to the script testing for validity of the
downloaded file, as often they would be corrupted from aa. But CWA is
already doing that, so we are just having redundant code here.

For the cloudflarebypasser, I basically run my own version now, instead
of depending on an external library, this way we have better control for
debugging and on the docker image.

Fixes #18, #33, #27, #48, #65, #78, #86, #88, #89

---------

Co-authored-by: mik593 <91991279+mik593@users.noreply.github.com>
2025-03-16 02:25:15 -04:00
CaliBrain 17fdb87749 Update readme.md
Removing PDF mention from readme since it is now supported by CWA #82
2025-02-14 18:15:29 -05:00
Cathelijne HornstraandCathelijne Hornstra af3d2cc358 feat: add commit date tagging to Docker image workflow (#69)
This PR adds a date-based tag to the docker container.

Example: 
<img width="875" alt="Screenshot 2025-01-25 at 01 33 01"
src="https://github.com/user-attachments/assets/d3c99763-de29-4802-affa-c6fd34f8c611"
/>

Fixes #68

Co-authored-by: Cathelijne Hornstra <git@pepperlink.nl>
2025-01-24 20:49:32 -05:00
FunnyPocketBookandCaliBrain aab3d7269a fix: clear checkboxes on new search query (#66)
This PR addresses an issue where the "download selected" functionality
behaves unexpectedly. If a user makes a selection of books to download,
performs a new search without clearing the previous selection, and
selects new books, clicking "download selected" would still include the
books from the prior selection. This causes the "download selected"
button to fail, as the books from the previous selection are no longer
available.


A potential enhancement could allow users to select books across
multiple searches and download them collectively. This could be achieved
by creating a dedicated section in the UI to track and display the
currently selected books. This feature might go well with a broader UI
overhaul, as has been suggested in some issues - maybe after your CF
bypass rewrite?

Co-authored-by: CaliBrain <calibrain@l4n.xyz>
2025-01-22 16:52:12 -05:00
mik593 7f56c6b832 feat: support search filters (#55)
Still a WIP but an initial attempt of search filters. #7 

Currently supporting: 

- ISBN
- Author
- Title
- Language
- Sort
- Content


first attempt at some sort of UI for it 👇

![image](https://github.com/user-attachments/assets/7237ae96-7e97-4db0-98da-06c3171aca3b)

smaller/mobile

![image](https://github.com/user-attachments/assets/ba20de0e-deb1-4aa1-9c5f-27cf473670e6)
2025-01-22 16:51:06 -05:00
FunnyPocketBook 7113905e25 Update readme.md env variable (#64)
Adjust `AA_DONATOR_KEY` in text to reflect changes of the env variable
2025-01-14 22:36:28 -05:00
Colin Yates 629dcf0681 Update readme.md (#62)
(minor spelling mistakes)
2025-01-14 11:25:07 -05:00
FunnyPocketBook 0034a688c4 [Feature] Select multiple books to queue (#57)
Related to #34 

This PR adds:
- Additional column for checkboxes as the first column to select which
books to download
- Select/deselect all books
- Button and modal to confirm download of selected books

Maybe the checkbox column should be at the end of the table, next to
actions?


![image](https://github.com/user-attachments/assets/459934cd-2503-41bd-83d7-b0517a541062)


![image](https://github.com/user-attachments/assets/77ff4636-6802-441e-a02c-17dafb6bfa9c)


![image](https://github.com/user-attachments/assets/4648357d-26e4-4be8-a5ca-19444486ceef)
2025-01-13 16:37:35 -05:00
FunnyPocketBook 39ac60eaab [Feature] Sort results table by headers (#58)
Related to #53

This PR adds sorting to the results table. This can be done by clicking
on the header of the table.

For narrow columns, the arrow indicating the ordering is underneath the
column title instead of next to the title - not sure how to solve that
elegantly without a minor redesign of the table :D


![image](https://github.com/user-attachments/assets/2d2f6d4f-681a-4900-b55a-67642cc3169f)
2025-01-13 14:20:11 -05:00
CaliBrain 6f14534312 Fix Absolute URL for AA Donators (#61) 2025-01-13 14:19:43 -05:00
CaliBrain b534664534 Fix status not getting removed properly (#51) 2025-01-10 12:57:42 -05:00
CaliBrain 74f00ddcec FIX Logging (#46)
- [FIX] Actually log to a file
- FIX Crash loop due to missing log folder
2025-01-07 15:30:45 -05:00
CaliBrain 2b80de35a8 [FIX] Actually log to a file (#44) 2025-01-07 14:04:50 -05:00
cthorne abff8de155 Fix closing results section (#41)
Fix for the closing of results when doing search for a second time
2025-01-07 13:26:03 -05:00
cthorne 348e5c925b Match size of detail & download btn (#37) 2025-01-05 19:41:41 -05:00