09-20-2015, 09:50 PM | #16 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
If I find time, I may look at this. Shouldn't be that difficult, I hope. I have to look a little deeper into qt to make the option gui and look at the api functions for customn columns. I hope it is as easy as just expanding my mapping functions.
|
09-21-2015, 12:48 PM | #17 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Sounds good. This is really working awesomely so far, thank you again.
I did run into one issue that you might want to check - when the issue number is 1/2 it errors with "could not convert to string". I would prefer that if it encounters a "1/2" it converts it to .5 on import so the series number would work well with Calibre. I try to catch these during tagging but I missed a couple and then ran into this error. Nice, nice work. Do you have any donation avenues set up as I know time is VERY valuable? |
Advert | |
|
09-21-2015, 04:31 PM | #18 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
When do you get the error? When you import to calibre? How is the 1/2 written? As "1/2" or with a special character? And I would have thought the error would be more like "couldn't convert string to float". Curious. Can you maybe send me a comic.xml file with this type of metadata, so that I could test it?
Never thought about donations. I have a paypal account, maybe I look into it, if it is easy. |
09-21-2015, 08:27 PM | #19 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Yes you are correct it was error that could not convert string to float. I have attached the relative documents. Let me know if you need anything further.
I get the error after the file is imported into Calibre and I choose your option to Import from the comic archive into Calibre. Last edited by DreamStatic; 09-21-2015 at 10:05 PM. |
09-21-2015, 11:39 PM | #20 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Fixed
|
Advert | |
|
09-22-2015, 12:57 AM | #21 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Thank you, but now I am getting another error on regular issue numbers. "TypeError:must be unicode, not str"
Sorry. |
09-22-2015, 08:34 AM | #22 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Should work now. I just forgot to check for the type.
|
09-22-2015, 02:20 PM | #23 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
I experimented a little with custom columns and it looks like it wouldn't be hard to implement that feature. In fact, my test column did work, so now I need to generalize the functions and implement the different fields. Should be ready in a few days
|
09-22-2015, 09:53 PM | #24 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
OH MY GOODNESS!! That is pretty awesome news!!!
|
09-23-2015, 08:12 PM | #25 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Looking good so far!! I did find one item that could be confusing for future users. You may plan on updating this already, just thought I would mention in case you hadn't noticed it yet. When you are showing the extended menu all three import options read the same (see screenshot). I went and reviewed the code to see what each did, but I assume the text should explain what each does.
Also, I ran your current Custom Column branch through 200 comics and only ran into one error. One comic has a ComicInfo.xml file in the cbz file, but it states no metadata found. I have attached the ComicInfo.xml in case it helps. Additionally, it also gave this error: 'NoneType' object has no attribute 'strip' Traceback (most recent call last): File "calibre_plugins.EmbedComicMetadata.ui", line 96, in sub_menu_triggered File "calibre_plugins.EmbedComicMetadata.main", line 66, in update_metadata File "calibre_plugins.EmbedComicMetadata.main", line 190, in write_calibre_metadata File "calibre_plugins.EmbedComicMetadata.main", line 239, in update_calibre_metadata AttributeError: 'NoneType' object has no attribute 'strip' Thanks again. Last edited by DreamStatic; 09-23-2015 at 08:23 PM. |
09-23-2015, 11:09 PM | #26 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
The same text was a typical copy&paste error, I just forgot to change that.
The error was because the comicinfo.xml had no comment field. In the latest build checks for cases like that are implemented, so it should now not throw an error. The current build is hopefully very near to the final build. It now needs some more testing and maybe some final tweaks. |
09-23-2015, 11:21 PM | #27 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Option choices make more sense now.
I no longer get an error when trying to import that comic without a comment node; however, it is like it just stops importing or something as none of the artist nodes, etc are imported. |
09-24-2015, 08:57 AM | #28 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
That is strange, I can import them just fine. Maybe you have not the last version? Depending on when you downloaded it, you may have not got the last commit, which fixed exactly that problem (or so I thought). I have attached the last version on this post. Hopefully this one works
|
09-24-2015, 09:46 AM | #29 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Yes, that seemed to have fixed the issue. Nice work!! Thank you.
|
09-25-2015, 10:13 AM | #30 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Plugin coming along VERY nicely! I am following along with your updates and so far you are knocking it out of the park! Thanks again. I will keep you updated if I spot any issues.
Last edited by DreamStatic; 09-25-2015 at 10:52 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Zotero Metadata Importer | DaltonST | Plugins | 291 | 08-07-2023 01:38 PM |
[GUI Plugin] Comicalibre - Comic Vine metadata processor | Pewsplosions | Plugins | 1 | 12-18-2022 10:16 AM |
[GUI Plugin] Clean Metadata | WS64 | Plugins | 28 | 01-06-2022 09:09 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 |