Casvt / Kapowarr

Kapowarr is a software to build and manage a comic book library, fitting in the *arr suite of software.
https://casvt.github.io/Kapowarr/
GNU General Public License v3.0
471 stars 20 forks source link

Kapowarr not picking up on files #202

Open YaibaToKen opened 1 week ago

YaibaToKen commented 1 week ago

Description of the bug

Kapowarr is not picking up on new files on the monitored folders even after forcing a refresh and scan

To Reproduce

Place files in folder, press Refresh and Scan button, refresh page and see no files were ppicked on.

Expected behaviour

Kapowarr should be able to automatically map the files or at least allow us to manually map the files in the folder.

Screenshots

image image image image

Version info

image

YaibaToKen commented 1 week ago

This only seems to happen sometimes, though I currently have at least 5 titles with this issue.

YaibaToKen commented 1 week ago

Logs for one of the attempts:

[19:39:23][INFO] Added task: Refresh And Scan (1)
[19:39:23][DEBUG] Running task Refresh And Scan
[19:39:23][DEBUG] Creating connection <DBConnection; Task Handler; 140309806142048>
[19:39:23][DEBUG] Using selector: EpollSelector
[19:39:23][DEBUG] Fetching volume data for ['134030']
[19:39:24][DEBUG] Using selector: EpollSelector
[19:39:24][DEBUG] Fetching issue data for volumes ['134030']
[19:39:24][DEBUG] Starting new HTTPS connection (1): comicvine.gamespot.com:443
[19:39:24][DEBUG] https://comicvine.gamespot.com:443 "GET /api/issues/?format=json&api_key=2d394e39fb6067eaabf7b67e24188d7e71a62799&field_list=id%2Cissue_number%2Cname%2Ccover_date%2Cdescription%2Cvolume&filter=volume%3A134030 HTTP/1.1" 200 None
[19:39:24][DEBUG] Scanning for files for 195
[19:39:24][DEBUG] Extracting filename data: /comics/Buffy the Vampire Slayer Faith (2021)/Buffy the Vampire Slayer - Faith 001 (2021) (Digital) (Kileko-Empire).cbz
[19:39:24][DEBUG] Extracting filename data: {'series': 'Buffy the Vampire Slayer Faith', 'year': 2021, 'volume_number': 1, 'special_version': None, 'issue_number': 1.0, 'annual': False}
[19:39:24][INFO] Finished task Refresh And Scan
[19:39:24][DEBUG] Closing connection <DBConnection; Task Handler; 140309806142048>
Casvt commented 5 days ago

The volume and files for "Bone Orchard: Tenement" match fine for me:

[13:51:53][DEBUG] Extracting filename data: /home/cas/plex-media/Comics/Bone Orchard Tenement (2023)/Bone Orchard - Tenement 001 (2023) (Digital) (empire).cbr
[13:51:53][DEBUG] Extracting filename data: {'series': 'Bone Orchard Tenement', 'year': 2023, 'volume_number': 1, 'special_version': None, 'issue_number': 1.0, 'annual': False}
[13:51:53][DEBUG] Added file to the database: /home/cas/plex-media/Comics/Bone Orchard Tenement (2023)/Bone Orchard - Tenement 001 (2023) (Digital) (empire).cbr

Kapowarr correctly detects the file and correctly extracts the data from the filename. For you it does not pass the filter though, and for me it does. I'll try running on v1.0.0 to see if I can reproduce there (if so, the issue is already fixed).

The volume "Buffy the Vampire Slayer - Faith" is detected by Kapowarr as an TPB, while in fact it is a One Shot. If I edit the volume and change the Special Version to One Shot, the file matches. I'll improve the Special Version detection so that it correctly detects the volume as an One Shot, but for now you can just override it.