11-07-2014, 05:33 PM | #1 |
♫
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
[GUI Plugin] Clean Metadata
My first plugin...
This plugin edits the metadata of selected books in your library. You can either just mark the books that will get changed or directly execute the changes. The main purpose is to mass-update many books at once that have pretty messed up metadata. Main Features:
Special Notes:
Installation Notes:
Running from command line:
Paypal Donations:
Version History: Spoiler:
Last edited by WS64; 11-22-2014 at 05:09 AM. |
11-07-2014, 06:20 PM | #2 | |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Code:
progress.setWindowTitle("WS64 CleanUp") Code:
progress = QProgressDialog("Processing books","Stop" , 0,len(ids) ,self) |
|
Advert | |
|
11-08-2014, 03:35 AM | #3 |
♫
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
@jhowell, thanks, worked!
I'm not sure why it didn't when I tried exactly this the first time... |
11-17-2014, 06:32 PM | #4 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Umlauts in QuarantineAndScrub: Title Rules Table
Quote:
If you install the add-on/plug-in QuarantineAndScrub, be sure to add your umlaut word changes to table _title_rules. I would imagine that changing all "ue" and "ae" dipthongs to u's and a's with umlauts would be incorrect, since I noticed that Duell has no umlaut. The Tag Rules table, _tag_rules, also would need to have entries for Tags that routinely should have an umlaut. DaltonST |
|
11-18-2014, 04:34 AM | #5 |
♫
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
Hi DaltonST, thanks for your feedback.
I guess our plugins have similar goals. ;) However, the installation of your QuarantineAndScrub looks too complicated for me to try it... You are right of course that I don't change all "ue"s to "ü"s. I use a blacklist to avoid false changings. Still not perfect, but close... |
Advert | |
|
12-02-2014, 11:52 AM | #6 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2014
Device: none
|
Hi, i am using yr plugin since yesterday. Great plugin!
However using it today i encoutered a problem. The title check is stopping at 61%. This is the fault report: calibre, version 2.11.0 FOUT: Niet afgehandelde fout: <b>error</b>:unbalanced parenthesis calibre 2.11 [64bit] isfrozen: True is64bit: True Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.8 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Successfully initialized third party plugins: Anobii Fetcher && Fantastic Fiction && Barnes & Noble && Search The Internet && Quality Check && Find Duplicates && Extract ISBN && Goodreads && BOL_NL && Clean Metadata Traceback (most recent call last): File "calibre_plugins.CleanMetadata.main", line 125, in <lambda> File "calibre_plugins.CleanMetadata.main", line 596, in process_books File "calibre_plugins.CleanMetadata.main", line 379, in process_titles File "re.py", line 142, in search File "re.py", line 244, in _compile error: unbalanced parenthesis Is there something i can do? tks |
12-02-2014, 12:01 PM | #7 |
♫
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
I stumbled upon the same problem the other day. Seems to happen when the author looks something like this: "abc(def" (no closing brackets).
Havn't checked any further so far (no time right now). But maybe you can check if you find a book like this in your collection and check if the error goes away if you exclude that one. Of course this is something I have to fix... |
12-02-2014, 01:23 PM | #8 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2014
Device: none
|
OK, i will try to find such one. The plugin stopped at about 60%. How is yr plugin processing, starting at record 1, so i can skipp the first 60% of the database?
|
12-02-2014, 06:01 PM | #9 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2014
Device: none
|
Hi, I checked all 10k+ titles and not such an example is present in my database.
|
03-05-2015, 07:04 AM | #10 |
Member
Posts: 10
Karma: 10
Join Date: Mar 2015
Device: PocketPook Touch HD 3
|
Hi,
The thread is quite old already, but maybe you're still reading here an have the time to reply. I just had a look at your great plugin and I found it very useful, especially in terms of correcting German titles. I also like the feature were you can extract the series from the title, but it doesn't work too well for me, probably because it looks for a specific format in the titles ('series' 'series_index': 'title', right?). When the format is not right, for example because it's 'author' - 'series' - 'series_index' - 'title', or just 'series' 'series_index', it does't find any entries. Is there a way to give the plugin a certain string instead of the default one? For example: I have a list of books, were the author or title field contain the 'series' 'series_index'. I would like to just bulk-copy that to the series field, instead of having to do it manually. Thanks very much for the good work! a librarian |
03-05-2015, 01:12 PM | #11 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
|
03-06-2015, 03:56 AM | #12 |
Member
Posts: 10
Karma: 10
Join Date: Mar 2015
Device: PocketPook Touch HD 3
|
Thanks very much for the link - that looks very promising! I don't know how I missed this before...
|
02-09-2017, 09:51 AM | #13 |
Zealot
Posts: 105
Karma: 10
Join Date: Oct 2013
Device: none
|
"Clean Metadata" Window is corrupt
Hi,
I am using Ubuntu 16.04 LTS. "CleanupGerman Umlauts in Title:" -> "Mark Only": the task is done, but the "Clean Metadata" Window is still there and has a corrupt content. I is not possible to close it. Even in in calibre Debug modus I do not see an error. |
04-16-2017, 04:29 PM | #14 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2017
Device: kobo
|
Quote:
The use of re.search with raw strings in the python code is interpreting "regex-like" strings from the title and author fields as regexes. Specific cases of "[2003-LABEL]" or something similar are seen as invalid character class ranges. I modified my local version of the code to preprocess the title and author strings with "re.escape(str)" prior to use to protect against this. I don't know how to resubmit my changes for the plugin, the owner can probably fix this if he/she cares. |
|
04-21-2017, 08:06 AM | #15 | |
Zealot
Posts: 105
Karma: 10
Join Date: Oct 2013
Device: none
|
Quote:
You can try to send a personal mail. For another plugin, i add a version to the thread, see here: https://www.mobileread.com/forums/sh...9&postcount=24 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Consolidate All Library Metadata (CALM) | DaltonST | Plugins | 333 | 12-15-2023 09:40 PM |
[GUI Plugin] Zotero Metadata Importer | DaltonST | Plugins | 291 | 08-07-2023 01:38 PM |
Call fetch/download metadata from GUI plugin | BeckyEbook | Development | 0 | 02-03-2017 07:51 PM |
Getting custom metadata field in GUI plugin | SauliusP. | Development | 7 | 02-11-2012 02:31 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |