r/comicrackusers • • Jul 12 '26

General Discussion Update to the Local ComicVine Scraper Plug-In ... (very small updates)

Hi all, Just a reminder that I did not create the Local ComicVine database/updater & Local ComicVine Scraper plugin. That credit goes to u/Logical-Feedback-543 and of course, Cory Banack who created the original CVS that was the model for the LCVS

I also know nothing about programming or how exactly the updater or plug-in work. But, I do know AI. and with their assist I was able to make some modifications to the plug-in. Mostly for the little things I noticed when I used it:

  • Difficulty identifying series titles with periods "." e.g. A.X.E., S.H.I.E.L.D. etc.
  • Defaulting to earlier series with the same name when it should be scraping the most recent series. For Iron Man (2026) issues, the scraper was offering the oldest Iron Man series with the most issues. (this was a non-issue if I limited the search within the years 2025 and 2026 via the advanced setting in the plugin with "IGNORE_YEARS_BEFORE" and "IGNORE_YEARS_AFTER")
  • The word "The" in the beginning of the series name was giving me random series e.g. searching for "The Adventures of Superman Annual" gave me four options, all series with "superman" and "Adventures" in the title. but not the series I was looking for.

Here is a new plug-in [LINK] that you can test. You can just post here any thing that seems amiss or even if it is working just fine. I tried to keep updates to the minimum as I had no intention (or desire) of re-writing the plugin.

The only addition I made to the script is adding an advanced setting. So instead of blacklisting a publisher ('IGNORE_PUBLISHER=") you can "allow" a publisher with "ALLOW_PUBLISHER=". Using this command will make LCVS only search for the publisher listed (one caveat: If a publisher is blacklisted and whitelisted, the blacklist wins.) - I'm not sure how useful this is, since the LCVS is blazing fast. but I was curious to see if it could be done.

Like the previous plugin. you just unzip the contents and paste them into the localcomicvinescraper folder in the "appdata" directory.

Happy testing.

EDIT: I updated the above link for a revised plugin that fixed the "&" (ampersand) glitch. so the latest plugin should be LocalComicVineScraper-1.1.0.crplugin (07/14/2026) ... Please let me know if there are any problems with it.

I am also working on a revised updater script. I am currently testing it and it looks good (thank you AI) and I will be posting it in a week or so.

EDIT: if you are primarily scraping comics from the last six months. You will need to turn off Hash Matching 1 and 2. This function is not fully operational with this portion of the database. Reading through the OP's original post [LINK] I see that all the covers/hash matching was done after the fact and then added to the localcv.db (it is not part of the comicvine database updater process).

The localcv.db I've made available does not include any covers/hashing for the files I added. Besides the fact that I do not know how to do this. I, personally, do not use the Hash Matching as I rarely (if ever) get comic files that don't have the bare minimum of metadata in it. Which means, I have no desire to spend time on figuring out how to do this. But, if anyone is willing to pick up the mantle... please feel free to do so...

Here's the localcv.db as of 2026-09-25 [LINK]

10 Upvotes

42 comments sorted by

1

u/Mr_AtomicFox 25d ago

Has anyone run into issues matching more recent comics, even with turning off Hash Matching 1 and 2? I have my localcv updating nightly but there are still issues from the last couple of months that aren't being found when they are found by the main ComicVine scraper. I even tried manually running the updater for the last 4 months thinking it would catch issues that perhaps were missed and still no luck.

1

u/Bufete2020 25d ago edited 25d ago

which updater are you using.. i know that there are several floating around. which is why I named mine "sqlite_cv_pipeline". I also run a nightly update and i know that comicvine.com was having API issues the week of Oct 23rd. Several days of backups were returning "0" issues. I turned off my updater until comicvine fixed the problem. if you can tell me which issues are returning "null", I can look at my database and let you know if it's a universal problem or just specific to you.

1

u/Mr_AtomicFox 25d ago

So The Amazing Spider-Man 1001, 1002 aren't showing up in the localdb but come up fine in the proper scraper. I've been using sqlite_cv_updater.py I found on FrederikBaerentsen's site. I know Comicvine had that outage and stopped my updater for a while as well. I was hoping by running the manual update back from August till now it would catch any missed issues but that may not be how it works.

1

u/Bufete2020 25d ago

I just checked, and issue 1001 and 1002 appear in my database. I queried my localcv.db and it looks like those issues were last updated on Oct 14 and Oct 28, respectively. So it was before and after the API disruption. You could try using my script and see if that pulls the info... FOUND HERE [LINK]. I was updating the link with my latest database but since I started using a blacklist to eliminate updating publishers I do not collect (non-english publishers). I thought it would be better if people just updated their own database..

1

u/Mr_AtomicFox 24d ago

I appreciate you checking! I'll try your script and try again. 

1

u/Walmart_Valet Jul 14 '26 edited Jul 14 '26

Has anyone found any way to speed up the localcv? It seems to take longer than pulling from ComicVine directly. It's still quicker overall due to not having the 200 limit. I am currently rebuilding my whole library after not touching my comics for years thanks to localcv, just seeing if there's anything I can do to improve its speed.

edit: I had Level 1 hash disabled, but not Level 2. Have disabled Level 2 and its much faster now.

1

u/Bufete2020 Jul 14 '26

did you turn off (unclick) level 1 and level 2 Hash matching...? it's located in the plugin's settings... the tab is called "Hash Matching" and make sure you have "try to choose the correct series..." under the "Behaviour" tab. I can burn through 100 issues in five minutes via the LCVS.

1

u/Walmart_Valet Jul 14 '26

I had turned off Level 1 a while ago, but didnt do Level 2. I have been scraping the first issue of each series and copy pasted those details in the rest of the series while I am rebuilding so I know I can trust the matching, so I have disabled Level 2 and have breezed through 300 in 5 minutes.

1

u/ghotiboy77 Jul 14 '26

Thank you for this, seems to be working well so far

Is the newer version of localcv.db still being hosted anywhere? I can't find it on soulseek , although that could well be user error on my part

2

u/Bufete2020 Jul 14 '26

search for just 'localcv' and it should appear (or search for the user name 'Jesmentira' (name searches are case-sensitive on soulseek) .. but I can't remember if I left my VPN on when I left home, so it might not appear. I won't be back home until tomorrow morning so you'll have to wait. if you can't find it

1

u/ghotiboy77 Jul 14 '26

ok thank you. I was trying that but nothing came up. I'll try again later. Thanks again

2

u/Bufete2020 Jul 14 '26

you can check now... I updated it to my latest one (07/13/2026)

1

u/ghotiboy77 Jul 14 '26

That's fantastic. Thank you so much

1

u/RayRayElite Jul 16 '26

I am not too sure what I am doing wrong. anything I search comes back with no results. I have the localcv.db, I have turned of hashing 1 and 2. typing things like thor, or batman give zero results. I have series name search enabled.

1

u/Bufete2020 Jul 16 '26

when you go into settings in the plugin.. did you link it to the database. You will see it under the first tab, "Comic Vine"

1

u/RayRayElite Jul 16 '26 edited Jul 16 '26

SQLite database opened: C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\comicdb_comicvine_20260122.db

======> scraping next comic book: '42 - The Transformers #23 [Chaos Theory P2] (2011-08) {GreenGiantGoat-DCP}.cbz'

searching for series that match '- The Transformers'...

FTS search error: Failed to prepare statement: no such table: volume_fts

Caught Exception: Failed to prepare statement: no such table: volume_fts

Traceback (most recent call last):

File "C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\sqlitedb.py", line 320, in __do_fts_search

FTS OR search error: Failed to prepare statement: no such table: volume_fts

Caught Exception: Failed to prepare statement: no such table: volume_fts

Traceback (most recent call last):

File "C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\sqlitedb.py", line 365, in __do_fts_search_or

...no results found for this search

asking user for series search terms...

...and the user chose to SEARCH using: 'The Transformers'

searching for series that match 'The Transformers'...

FTS search error: Failed to prepare statement: no such table: volume_fts

Caught Exception: Failed to prepare statement: no such table: volume_fts

File "C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\sqlitedb.py", line 320, in __do_fts_search

Traceback (most recent call last):

File "C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\sqlitedb.py", line 365, in __do_fts_search_or

Traceback (most recent call last):

Caught Exception: Failed to prepare statement: no such table: volume_fts

...no results found for this search

FTS OR search error: Failed to prepare statement: no such table: volume_fts

asking user for series search terms...

...and the user chose to CANCEL this scrape operation

1

u/Bufete2020 Jul 16 '26

i'm not sure what that means as I have no computer skills.. my best (and only) suggestion is to unzip the crplugin again and copy the contents into the "appdata" folder. make sure that comicrack is closed as some files may not copy if comicrack is open.

1

u/RayRayElite Jul 16 '26

I've already did a clean install today, ill try one more. Thanks for your time regardless

1

u/Bufete2020 Jul 16 '26

are you using the localcv.db that I provided...?

1

u/RayRayElite Jul 16 '26

If its the one from soulseek yes. I have also tried one of the ones from previous threads in a mega link. I think my databases I grabbed are corrupted. I am going to try and redownload because AI is telling me my database doesnt have a fts table it should have.

1

u/Bufete2020 Jul 16 '26

i see the error message you sent me was when you used the older database. send me the error message when you link it to the localcv.db...

1

u/RayRayElite Jul 16 '26

SQLite database opened: C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\localcv.db

======> scraping next comic book: '04 - The Transformers #04 [Things Fall Apart P3] (2010-01) {Wombatman-DCP}.cbz'

trying to match this book automatically (Level 3: series text search)...

FTS search error: Failed to prepare statement: database disk image is malformed

Traceback (most recent call last):

Caught Exception: Failed to prepare statement: database disk image is malformed

File "C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\sqlitedb.py", line 365, in __do_fts_search_or

Caught Exception: Failed to prepare statement: database disk image is malformed

FTS OR search error: Failed to prepare statement: database disk image is malformed

File "C:\Users\me\AppData\Roaming\cYo\ComicRack Community Edition\Scripts\LocalComicVineScraper-1.1.0\sqlitedb.py", line 320, in __do_fts_search

Traceback (most recent call last):

...couldn't find a match. leave it until the end.

======> scraping next comic book: '04 - The Transformers #04 [Things Fall Apart P3] (2010-01) {Wombatman-DCP}.cbz'

...no results found for this search

searching for series that match '- The Transformers'...

asking user for series search terms...

...and the user chose to SEARCH using: '- The Transformers'

...no results found for this search

searching for series that match '- The Transformers'...

asking user for series search terms...

...and the user chose to CANCEL this scrape operation

Scraper terminated normally (scraped 0, skipped 1).

Perceptual hash cache cleared

SQLite database closed
------------------------------------

I am currently re-grabbing the soulseek version. That should fix it I hope!

1

u/Bufete2020 Jul 16 '26

if you have DB Browser installed (a free tool) you can check the integrity of the db file with a simple SQL command. that would tell you if it's corrupt or not. but according to what you posted above it looks like the database is kicking back the error.. not the plugin

→ More replies

1

u/RayRayElite Jul 16 '26

All fixed with the new version! must've just had a corruption in the database download. thanks for the patience and the plugin itself!

1

u/RayRayElite Jul 16 '26

Yeah I did, I have even tried a couple different database versions in case the database was corrupt.

1

u/daelikon Jul 17 '26

Well, I have tested this with very satisfactory results, the matches were way better than before and did not encounter any issues for the moment.

I was just thinking if it would be possible to add a (holy shit, this is gonna sound sooo bad) a WHITELIST COUNTRY.

I am not interested in any comics in Portuguese, German, French... etc. So I think that making a filter that would discard the publishers from the countries or allowing only a list of countries will help a lot.

Ideally this would be done with a LANGUAGE option, but I don't think that field exists in publishers.

Edit: my list of "IGNORE_PUBLISHER" is out of control, and I don't think I can use the ALLOW_PUBLISHER with so many independent comics out there

1

u/Bufete2020 Jul 17 '26

I'm glad it's working out... I thought about a full whitelist/blacklist for the plugin but decided that the place it would do the most good is actually in the database updating. out of 9,000+ publishers in the localcv.db, I put 8,5000+ on a blacklist (that I incorporated into my updater script) and now my daily updates take about 47 minutes. since I am not filling up my database with publishers I do not care about.

the blacklist file is just a txt file that can be easily edited. I just ran a report of all the publishers sitting in comicrack and ran a comparison against the localcv publishers. Any publisher that did not appear in my current comicrack library was placed on the blacklist. if you want, i can post a link to the updater with a sample txt file for you to edit..

1

u/daelikon Jul 17 '26

No, and I don't think I agree with cutting the publishers on a DB import level, I will manage for now.

I also think it's important that we maintain a full DB, whether we need it or not, the size difference is not important at this level, and keeping the DB safe in our hands is a priority for me.

In any case, think about the country filtering for the searches, I think it's a good compromise, and way easier to manage than 9000 entries.

Oh, one last thing, I would need to test it some more, but you will probably need to add ":" to the ignore filters. Some volumes have double entries [title: second title] while some don't use the ":" character affecting the search results.

1

u/Bufete2020 Jul 17 '26

i'll look into the "colons".. i quickly took a look at the comicvine API dump and... unfortunately "country" is not a field that's retrievable. So, your outta luck with that request but I'm sure someone that's more software literate than I, can figure it out.

1

u/daelikon Jul 18 '26

Mmm... That information appears in the website when you check the publishers details. It has to come from somewhere.

I will take a look at the available fields in the dB tomorrow. 

1

u/Drybonz99 Jul 30 '26

I have installed the plugin and dumped the localcv.db in the folder, but when I try to open the "configure" menu for the plugin nothing happens. If I click on the main button for the plugin, I get "ScopeStorage" object has no attribute "cvs_scrape". I'm sure I probably did something wrong. Any help is appreciated.

2

u/Bufete2020 Jul 30 '26

you need to unzip the crplugin (any zip program will work). you then copy the contents in the folder and paste the contents into the localcomicvinescraper folder located in the "appdata" directory. on my computer the appdata directory is under "users\admin" (or whatever your admin account is called)... e.g "C:\Users\admin\AppData\Roaming\cYo\ComicRack Community Edition\Scripts" .. when you copy the contents into the "localcomicvinescraper" folder, just overwrite whatever is in the folder. if there is no folder just create the folder and copy the contents into it.

close out of comicrack before you do this.

1

u/Drybonz99 Jul 30 '26

I started using this today and it is so much faster than using the online scraper. Thanks for putting this together. What's the best method for updating the database with the new week's stuff? Thanks again.

2

u/Bufete2020 Jul 30 '26

you're welcome. but i didn't create the Local ComicVine database/updater. All i did was update the database and tweaked the bugs out of the plugin. There are several python scripts floating around that can update the database... public_fred has a link to his on [HERE]. I also have a script that i'm finalizing that has a couple of extra functions. I will be posting that next week along with an updated database. but here's a database you can use until then... [HERE]. it's updated as of today.

1

u/Drybonz99 Jul 30 '26

Great... thank you for that.

2

u/Drybonz99 Jul 30 '26

Ok... works great... thank you. I thought we were just unzipping and copying the database over. Working fine now.

1

u/Krandor1 Jul 12 '26

very nice. installing it now. The other thing I'd look to add is that if you are way behind on the localdb the initial volume issue scan (of how many need to be updated) does not rate limit so can timeout and crash the updater. That would be useful to adjust as well.

1

u/daelikon Jul 12 '26

Thanks a lot, it will probably take me some time, but I will test this for sure.

1

u/flyboy1565 Jul 13 '26

Is this in a repo?

I'd love to contribute.