Skip to content

Releases: zachstultz/komga-cover-extractor

v2.4.2 - Chapter Rename Improvements pt.1

28 Jul 20:05
e9750f4
Compare
Choose a tag to compare

Changes:

  • Improved chapter renaming compatibility 3133531
  • Blurred komga email and password settings on startup settings output 3133531
  • Code cleanup 3133531
  • Misc changes 3133531

v2.4.1 - Alternative Matching

26 Jun 20:40
3935d62
Compare
Choose a tag to compare

REQUIRED:
   1. Update to the new settings. 3935d62

New:

  • Added correct_file_extensions_toggle d047bfc
  • Added filetype dependency to requirements.txt 8aea5e0
  • Added docker container solution (still testing, so it won't be advertised for awhile)
  • Added alternative matching solution that uses image similarity between covers. (allows series_name - subtitle to accurately match series_name and vice versa when the subtitle is left out of the title, without compromising accuracy. f433ff9 965c30f 61f0681
  • Added temp solution for renaming c05_extra toc05.5 (a more proper solution will come once all the volume regexes are modular and cleaned up) (.5 is the widely accepted number for _extra in the scene, so I went with that)
  • Added full run & external settings.py output on script run 8576560
  • Added pulling komga libraries prior to scan (not only eliminates the user having to specify the library ids in settings.py, but it also now only sends a scan to the libraries that actually had something moved to it, instead of all of them) 8576560

Changes:

  • Fixed certain chapters not getting processed 38abe56 5c669e3
  • Added exception catching to watchdog event handler 886d3d4
  • Adjusted main() execution order 1622d3c
  • Improved accuracy of determining the correct part, subtitle, and extras inside the file name 7856eda 23044ef
  • Fix for reorganize_and_rename() 125712c
  • Cleaned up unnecessary output from watchdog 5202be3
  • Moved some more advanced settings back to the main script in an effort to simplify settings.py 3935d62
  • Removed all the performance/timer related code 8576560
  • Removed unacceptable_file_extensions functionality (unacceptable keywords can do the same functionality) 8576560
  • Misc changes 900da16 00959db 8576560

v2.4.0 - Correct File Extensions

16 May 18:54
8aea5e0
Compare
Choose a tag to compare

REQUIRED:
   1. Update to new settings or add this to your existing: d047bfc
      correct_file_extensions_toggle = False
    2. Run new requirements.txt 8aea5e0

New:

  • Added correct_file_extensions feature, corrects an incorrect file extension by reading the header of the file and checking if that matches the current file extension. dc5f675
    • (currently limited to only working with zip/cbz and rar/cbr, due to improperly packed epubs posing some issues)

Changes:

  • Fixed mistake with get_subtitle_from_title() and enabled it when restructuring the file name fcc84b7
  • Added using the header extension as an alternative when checking for a valid zip for renaming a zip to a cbz dc5f675
  • * is now removed from the file name when restructuring and renaming. dc5f675
    • (A more robust replace/remove all illegal characters function will come in the future)

v2.3.3 - ZIP Support

13 May 15:38
2b41a82
Compare
Choose a tag to compare

REQUIRED:
   Update to new settings or add these to your existing: ce91953
      replace_unicode_when_restructuring = False
      rename_zip_to_cbz = True

New:

  • Enabled .zip support for all features 3bcee76
  • Added rename_zip_to_cbz option within convert_to_cbz() to settings.py that renames a valid zip file with a .zip extension to .cbz 0b24121 ce91953
  • Added option to unidecode a file name when restructuring and renaming 0f74576

Changes:

  • Added error catching to get_internal_metadata() 61e24f6 fd8c38c
  • Improved epub metadata retrieval 088c7bb
  • Added author info to bookwalker_check discord output c88ef46
    image
  • get_extra_from_group() rewrite 0f74576
  • scrape_url() rewrite b450c00
  • More verbose output on rejection of a file with watchdog 4767e90
  • Misc rewrites, reworks, cleanup, and additional documentation 2c2da70
  • Misc changes/fixes 6669e80 09fb6fb 64889ab

v2.3.1-2.3.2 - Cover Option

24 Apr 18:59
2fe9e55
Compare
Choose a tag to compare

REQUIRED:
   1. Run updated requirements https://github.com/zachstultz/komga-cover-extractor/blob/master/requirements.txt
   2. Update to new settings or add the new setting to your existing. d407f0e

     use_latest_volume_cover_as_series_cover = False

New:

  • Added logic to pull higher quality images for bookwalker_check instead of the heavily compressed ones. eec31b0
  • Added use_latest_volume_cover_as_series_cover setting for cover extraction.
    • Uses the latest volume's cover instead of the first volume's cover.
      • Uses modification date and hashing for matching. Will automatically switch them out if you change the setting back and forth. 2fe9e55

Changes:

  • Added error catching to check_if_zip_file_contains_comic_info_xml() 67cd69f
  • Updated/Cleaned up requirements.txt c095a9c
  • Cleaned up script imports 2fe9e55
  • Added additional error catching when a zip is being accessed 2fe9e55
  • Rewrote functions for processing and compressing extracted cover images. 2fe9e55
  • Readded skip options to upgrade_to_volume_class() (they're actually needed now) 2fe9e55
  • Reduced nested looping on isbn/series_id matching 2fe9e55
  • Misc renames and rewording 2fe9e55

v2.3.0 - Convert to CBZ

13 Apr 21:10
93cf093
Compare
Choose a tag to compare

REQUIRED:
    1. Update to the new settings.py (or manually add convert_to_cbz_toggle = False to your existing settings 93cf093
    2. Run new requirements.txt efd44d7
    FOR NEW FEATURE: (OPTIONAL) (IGNORE IF ALL YOU INTEND TO USE IS COVER EXTRACTION)
        1. Install unrar (instructions here)

New:

  • Added Convert To CBZ feature: recursively scans the specified directories that were passed in to download_folders (-df) for any rar/cbr files, and converts them to cbz files. (Requires the install of unrar)

Changes:

  • Watchdog adjustments/fixes 383a014 d69e436
  • Code cleanup/simplification 8101e2e ec411ff
  • Subtitle extraction fixes c29e48f
  • Fixed file does not exist scenario a00c160
  • Purged unnecessary global keywords bf34646
  • Adjusted bracket removal to avoid removing a bracket from the series_name bf34646
  • Improved chapter renaming with file names that don't contain a chapter keyword and contain various lone numbers throughout them fa17d8d 064aaa9
  • Misc changes 1978a0b

v2.2.5

28 Mar 14:42
b553915
Compare
Choose a tag to compare

New:

  • Added chapter keyword "d" support 606ecff
  • Added hash check on equal download duplicates before requiring the user 4fabe85
  • Added caching for get_zip_comment for isbn/series_id matching 6f411db
  • Added support for German volume keyword "von" 08c2d16
  • Watchdog now checks whether the files currently in the download folder have been fully transferred first, before running the script. It also double checks those folders later in the script, to make sure new files haven't been dumped in them that haven't been confirmed to be fully transferred. b553915
    (watchdog is still considered experimental, so use at your own risk with --watchdog "True" when running the script)

Changes:

  • Fixed no webhook error 68c179a
  • Removed .jxl support (no longer supported by komga) 356462a
  • Fixed new volume webhook not being used when grouping exceeds 10 356462a
  • Grouped notifications are now grouped to a maximum of 10 by default 08c2d16
  • Improved bookwalker matching for the bookwalker_check (pt.1), expect a pt.2 of changes/fixes in the future. 08c2d16
  • Reworked bookwalker log output and discord output (now includes the cover and description for each volume) 7d308f2
    image
  • Watchdog can now be triggered by either an accepted file extension (cbz or epub) or if you have delete_unacceptable_files_toggle on and the extension is in the array of unaccepted_file_extensions in settings.py bd6da85

v2.2.4

02 Mar 16:44
25d5d4f
Compare
Choose a tag to compare

UPDATE TO THE NEW SETTINGS!: 25d5d4f

v2.2.4 6241261 dc1cefb dcccb92 e5c8134:

New:

  • Added fallback logic for when no series_name is found on a file.
    EX: v01.cbz is the file name, and the folder is the series_name. As long as that name isn't in any of the passed in paths for paths or download_folders, it will be used as the series_name now.
  • Massive discord message reduction by grouping related messages together. (should significantly help with rate limiting)

Changes:

  • Modularized file extension usage around the script
  • Heavily adjusted volume and chapter regex formatting (Fixed WITCH WATCH chapters not getting renamed)
  • Unnecessary code removal
  • Started the process of making sure any os operation is consistent across the script in that it uses the dedicated function instead of the bare os.remove or os.rename, etc...
  • Removed extension-related arrays from settings.py and moved it back into the main script. (to hopefully reduce future updates to settings.py)
  • Misc wording changes around the script and settings

v2.2.3 - WEBP Support

21 Feb 22:07
1039aa7
Compare
Choose a tag to compare

UPDATE TO NEW SETTINGS! (or update image_extensions in settings.py) 1039aa7

v2.2.3 99209ea:

New:

  • Added .webp support (common with chapter releases) (covers get converted to .jpg, since .webp isn't a supported file type for local covers in komga, see here)
  • Added Support for French volume keywords Tome and T (EX: series_name Tome 01.cbz or series_name T01.cbz )

Changes:

  • Adjusted return values for the cover extraction feature
  • Misc code cleanup

v2.2.2

17 Feb 14:22
7bfc76b
Compare
Choose a tag to compare

New:

  • Added found_existing_meta_match boolean to break the loop when a matching identifier has been found with match_through_isbn_or_series_id, instead of continuing to aimlessly go through the remaining identifiers. 7bfc76b

Changes:

  • Fixed incorrect series output messaging and placement f182ae4
  • Adjusted cover-extraction output readability e467eee
  • Modularized remaining volume keyword regexes 2c9fd80
  • Modularized chapter keywords in current chapter_searches 4078c77
  • Fixed crash when attempting to sort grouped_by_series_names, but both a float and an array of floats were present 4078c77
  • Cleaned up print_function_execution_time code and removed all the end_times and moved that to the function itself 9ce6b4e
  • Converted remaining send_discord_message() calls that weren't using fields over to using fields 8c31d48 fecdc94
  • Simplified volume class creation logic 7bfc76b