Commit Graph
45 Commits
Author SHA1 Message Date
crocodilestick 3e3d2e5e4d feat: Implement auto-send and enhanced auto-metadata fetch systems
## Major Features Added

### 📧 Auto-Send System
- Automatically emails newly ingested books to users' eReaders
- Configurable delay (1-60 minutes) to allow for processing
- Supports multiple formats (EPUB, MOBI, AZW3, KEPUB, PDF)
- Integrates with existing Calibre-Web email configuration
- Respects user preferences and access controls

### 🏷️ Auto-Metadata Fetch System Enhancements
- Enhanced metadata fetching with multiple provider support
- Added smart metadata application mode with intelligent criteria
- Moved control from user-level to admin-only configuration
- Implemented provider hierarchy with drag-and-drop interface
- Added quality-based metadata replacement logic

## Database Schema Changes

### CWA Settings (scripts/cwa_schema.sql)
- Added auto_metadata_smart_application SMALLINT DEFAULT 0
- Enables intelligent vs direct metadata replacement modes

## User Interface Updates

### Admin Interface (cps/templates/cwa_settings.html)
- Added smart metadata application toggle with detailed tooltip
- Enhanced provider hierarchy management

### User Interface (cps/templates/user_edit.html)
- Removed auto_metadata_fetch controls (now admin-only)
- Cleaned up user profile interface

## Smart Metadata Application Logic

### Direct Replacement Mode (Default)
- Takes metadata from preferred provider exactly as provided
- Complete replacement of existing metadata
- Philosophy: "Just take the metadata as is"

### Smart Application Mode (Optional)
- Intelligent criteria for metadata replacement:
  * Titles: Only replace if longer/more descriptive
  * Descriptions: Only replace if longer/more detailed
  * Publishers: Only replace if current field is empty
  * Covers: Only replace if higher resolution
  * Authors: Always update for consistency
  * Tags/Series: Always add for discoverability

## Technical Implementation

### Metadata Helper (cps/metadata_helper.py)
- Enhanced _apply_metadata_to_book() with smart application logic
- Updated fetch_and_apply_metadata() for admin-only control
- Integrated CWA_DB settings checking for both modes

### Ingest Processor (scripts/ingest_processor.py)
- Removed user-based metadata checking
- Streamlined to use admin settings only
- Improved processing pipeline integration

### Form Processing (cps/cwa_functions.py)
- Auto-detection of boolean settings from schema
- Automatic handling of auto_metadata_smart_application

## Provider System Enhancements
- Google Books, Internet Archive, DNB, ComicVine, Douban support
- Priority-based searching with first-success-wins logic
- Quality criteria evaluation for metadata selection
- Configurable provider hierarchy with drag-and-drop interface

## Documentation

### Wiki Pages Created
- Auto-Send-System.md: Comprehensive user and admin guide
- Auto-Metadata-Fetch-System.md: Detailed configuration and usage
- Enhanced with relevant emojis for improved readability
- Covers troubleshooting, best practices, and technical details

## Integration & Compatibility
- Maintains backward compatibility with existing email settings
- Integrates seamlessly with auto-convert and ingest systems
- Respects existing access controls and user permissions
- No breaking changes to existing functionality

## Testing Notes
- Database schema updates will apply automatically on app startup
- Settings form processing handles new boolean field automatically
- Metadata fetching now controlled entirely by admin settings
- User interface cleaned of deprecated metadata controls

This implementation provides a complete automated book delivery and metadata enhancement system while maintaining the principle of admin-controlled automation and user-friendly operation.
2025-09-04 18:22:54 +02:00
crocodilestick a386604c43 Added light mode backgrounds for caliBlur 2025-09-04 18:14:26 +02:00
crocodilestick df1173fe8f Fixed ill-aligned sort element in first column of book list table 2025-09-04 15:38:40 +02:00
crocodilestick 3f25c24d92 Fixed send to ereader menu styling and added ability to enter emails not already saved to the users account 2025-09-04 12:58:50 +02:00
crocodilestick 57a741e71a Added Send-to-Ereader menu to the book details page 2025-09-04 11:27:01 +02:00
crocodilestick 59068aba85 Improved login window styling on mobile 2025-08-25 21:41:47 +02:00
crocodilestick 7aebf25853 Fixes login display on mobile and desktop with any amount of login options 2025-08-25 19:44:27 +02:00
crocodilestick f0786605a9 Numerous CSS & JS optimizations to improve performance app wide and improve cross-browser compatibility 2025-08-25 19:00:32 +02:00
crocodilestick 88baa1fe5a Fixed styling and positioning of progress modal for uploads 2025-08-25 15:01:23 +02:00
crocodilestick 11b4e2d261 Fixed description positioning on mobile in book view 2025-08-25 15:00:03 +02:00
crocodilestick 35c55ff810 Fix login styling with only basic auth 2025-08-25 14:58:25 +02:00
crocodilestick ba7ad82ebb Fixed close button on delete book dialog not being in the dialog bar 2025-08-25 14:42:34 +02:00
crocodilestick 0c3d80a0cf Fixed book view css 2025-08-22 16:57:43 +02:00
crocodilestick 245043b341 Added tooltip to selection checkboxes to let users know they can be shift clicked, moved select all and clear all buttons to above table, tidied up the function buttons, fixed positioning of sort options 2025-08-21 15:09:16 +02:00
crocodilestick fb21e1f0a6 Fixed some element positioning issues in mobile dark mode 2025-08-19 17:49:38 +02:00
crocodilestick c6a6aa9420 Fixed tooltips not showing up for toolbar elements 2025-08-15 17:21:33 +02:00
crocodilestick b79c88f7bb Fixed Mark As Read & Add To Archive buttons being difficult to interact with in book view 2025-08-15 15:23:12 +02:00
crocodilestick 1314d49529 Since V3.1.3, manual convert is not accessible
Fixes #521

Fixed CSS issue stopping convert options showing up for screen widths smaller than 470px.
2025-08-14 11:24:47 +02:00
crocodilestick a978996662 Fixed [bug] Authors interface has display bugs
Fixes #298
Now on all list.html based pages, filtering elements now collapse into a drop down if there would otherwise be too many to display neatly
2025-08-12 15:56:11 +02:00
crocodilestick 68505e6ec3 Fixed mobile dark login css 2025-08-10 17:43:35 +02:00
crocodilestick cc9da2cd97 Made CWA settings page look better on desktop 2025-08-10 17:43:13 +02:00
crocodilestick f3d6b2715a Fixed CSS on dark mobile editbooks page 2025-08-09 23:37:56 +02:00
crocodilestick 175056cf71 Fixed Read More functionality on new dark mode book view mobile view 2025-08-09 12:52:42 +02:00
crocodilestick 29eb8cef5d CSS fixes that remove need for an override 2025-08-09 12:35:47 +02:00
crocodilestick 4270d29265 Fixed movile dark book view css 2025-08-09 12:20:03 +02:00
crocodilestick 91f727529d Added "sexy-background-blur" option to cwa-settings to give mobile dark mode users the same cover incorporated background blur effect they have on desktop (can be disabled in cwa settings) 2025-08-09 11:56:30 +02:00
crocodilestick 32d03d5450 Finishing touches on mobile dark mode book view 2025-08-08 16:17:57 +02:00
crocodilestick 732191b815 Made checkboxes not blue in dark mode 2025-08-08 15:34:46 +02:00
crocodilestick d91ac99974 Fixed edit users table in dark mode 2025-08-08 15:21:39 +02:00
crocodilestick 5085146d4b Fix dark mobile book view & dark login screen css 2025-08-08 11:45:14 +02:00
crocodilestick 2d594fc068 Fixed tag positioning in book view dark mobile 2025-08-07 19:00:01 +02:00
crocodilestick fd284acf51 Made major improvements to the mobile book view in dark mode 2025-08-07 18:43:37 +02:00
crocodilestick 2eac21a795 Fixed typo 2025-08-07 00:13:54 +02:00
crocodilestick dfb872aba2 Fixed profile button being misaligned in new mobile view, disabled ability to reset calibre-library location in DB Config settings and added an explaination about how CWA handles libraries 2025-08-07 00:13:11 +02:00
crocodilestick 65c43cbb0f Fixed profile picture positioning mobile 2025-08-05 01:19:17 +02:00
crocodilestick 7839157b2e Fixed css 2025-08-05 00:57:21 +02:00
crocodilestick 1c0ce56b75 Tried to make the mobile view alot better 2025-08-05 00:26:19 +02:00
crocodilestick b9c823fc7a Fix Kobo auth window being rendered off screen in dark mode 2025-08-04 23:05:37 +02:00
crocodilestick d8cc97c880 Fix branding 2025-08-04 16:54:43 +02:00
crocodilestick f039518acd Fixes [bug] Add to shelf in dark theme - list too short
Fixes #455
2025-08-02 23:30:23 +02:00
crocodilestick 257de8e157 Fixes add to shelf elements positioning 2025-08-02 23:10:49 +02:00
crocodilestick c00df299ae Fixes chracter selection element crowding other elements on smaller screens 2025-08-02 22:40:33 +02:00
crocodilestick 5db19746f8 Fixed styling of Catagories, Authors. Publishers, Ratings & File Formats pages 2025-08-02 19:05:42 +02:00
crocodilestick 6e48ca185e Fixed dowload list being unusable in Dark mode 2025-08-02 19:04:06 +02:00
crocodilestick 73eecc175b MAJOR REFACTOR
- The CWA repo now contains all of the core required files it needs & no longer directly uses the latest Calibre-Web releases & linuxserver/docker-calibre-web repo to build it's images
- This change should hopefully make contributing to the project much more intuitive for those interested as well making CWA easier to develop for in general

Bugfixes:

- Fixed typo in amazonjp.py preventing it from working
2025-08-02 12:04:05 +02:00