10-20-2013, 06:57 AM | #1 |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
[Metadata Source Plugin - Deprecated] MondoUrania
Mondourania - Version 0.2.3 -BETA!! 3 juni 2020 by Pr. BarnArt.
THIS PLUGIN IS DEPRECATED! This plugin is for using MondoUrania.com as a metadata source. It is for italian books of Urania. It was based on my Inmondadori plugin. Main Features of MondoUrania version 0.2.3
Special Notes:
known issues /to do:
Update info 0.2.3
This is a beta, so in develop-mode, please comment if you get false results. (pls inform me, if you get no results or errors. I don't use it myself - I am dutch;-) The same for requests. Installation Notes:
Paypal Donations: Version History: Spoiler:
Last edited by Pr.BarnArt; 01-07-2021 at 05:39 PM. Reason: update 0.2.3 |
10-21-2013, 02:02 AM | #2 |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
Update to 0.2.0 for support of more series of MondoUrania.com
Still beta, so please let me know if there problems or requests. |
03-16-2014, 07:24 PM | #3 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
Hi Pr.BarnArt.
I'm currently using the plugin and it works very well. I was trying to make a modification, but I'm stuck. In my DB, I have a user metadata called "Original title", in which is stored the original (non italian) title of the book, but it seems that setting a user metadata in a plugin is not as easy as for standard metadata fields (such as Author or Title). Can you share any hint on this ? Thanks Paul |
03-18-2014, 09:37 PM | #4 | |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
Quote:
To my knowledge it is not possible to do it in only a metadata plug-in. Last edited by Pr.BarnArt; 03-19-2014 at 02:22 PM. |
|
03-21-2014, 07:25 PM | #5 | |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
Quote:
My feeling is that they are spawned from different classes, so that the resulting metadata object doesn't have access to custom fields properties and/or methods, instead userinterface object does (but it's just a hunch). If this is correct, my problem would be to update a hundred books simultaneously: if I have to click a userinterface for every one of them, it would be quite boring... If any developer is reading, is Pr.BarnArt's assumption correct ? A custom field can't be updated from a metadata plugin ? If yes, is it a difficult task to implement it ? Thanks |
|
03-21-2014, 08:13 PM | #6 | |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
Quote:
After that the user interface with one click will search through the database for the separator And split the information. |
|
06-04-2014, 04:27 PM | #7 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2014
Device: ipad2
|
Little Bug
Hello, I found a bug in __init__.py module, now MondoUrania reply also with "mondo Urania" in response. So I modified your code inserting some lines:
Your code: if ' - MondoUrania' in title: title = title.rpartition(' - MondoUrania')[0].strip() if ' - Mondourania' in title: title = title.rpartition(' - Mondourania')[0].strip() My code: if ' - MondoUrania' in title: title = title.rpartition(' - MondoUrania')[0].strip() if ' - Mondo Urania' in title: title = title.rpartition(' - Mondo Urania')[0].strip() if ' - Mondourania' in title: title = title.rpartition(' - Mondourania')[0].strip() Regards. Luca |
06-09-2014, 08:18 AM | #8 |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
|
05-24-2015, 07:05 AM | #9 |
Member
Posts: 19
Karma: 10
Join Date: Mar 2011
Location: Berlin , Deutschland
Device: iPad, Kobo Touch (dead)
|
Hi,
thanks [Pr.BarnArt](https://www.mobileread.com/forums/member.php?u=121602) for the wonderful plugin! I was starting writing my own. I changed the search url to: to avoid google filtering out similar result. I also commented out the title match, because a lot of my file have misspelled titles. Just a stupid question : do you limit the number of title on output? How can I get all the results? Thank you again! |
05-25-2015, 07:13 AM | #10 | |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
Quote:
In the configuration of the plugin you can set the (maximum) number of search that will be evaluate. But the output from calibre is just one for a plugin (afaik). That is a function of calibre. I do not know how you can pass that. |
|
05-25-2015, 09:50 AM | #11 | |
Member
Posts: 19
Karma: 10
Join Date: Mar 2011
Location: Berlin , Deutschland
Device: iPad, Kobo Touch (dead)
|
Quote:
I meant the line 201 ¦ def ismatch(title): in __init.py__, does this function filter the results where the title doesn't match with the inital query? it seems to me to not handle apostrophe correctly, maybe the query should be url-encoded using urllib, after the utf-8 encoding . Do you have a repository (github, bitbucket) where people can contribute ? Thanks for the good work! |
|
05-25-2015, 09:55 AM | #12 | |
Member
Posts: 19
Karma: 10
Join Date: Mar 2011
Location: Berlin , Deutschland
Device: iPad, Kobo Touch (dead)
|
Quote:
It does behave strangely anyway, for example I was searching for Mai Più umani with blank author and it returns Nelle viscere della luna . |
|
03-21-2017, 10:41 AM | #13 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
Not working
I'm trying to make the plugin work, because it doesn't anymore. It seems that no matter what, it gets no result from the search query, even if it's correct (cut and paste into a browser works fine).
Problem is I'm unable to read the logs. I don't understand where commands such as self.log.error or self.log.exception write the messages and the real time log displayed in the Calibre windows is near to useless. Direct print statement doesn't work. Any suggestion on how to read such messages is most welcome. Thanks Paul |
03-21-2017, 08:18 PM | #14 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
When you try to get metadata, at the bottom of the result window or error message, there is a button to copy the log. Press that and post the result. If there was an error, then that will show the error. And if you are editing the plugin and adding the log statements you mention, then that is where they go.
|
03-22-2017, 07:14 AM | #15 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
In file __init__.py change line 197:
Code:
results = root.xpath('//h2/a [@class="l"]') Code:
results = root.xpath('//h3[@class="r"]/a') |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] FictionDB | kiwidude | Plugins | 129 | 03-16-2024 11:14 PM |
[Metadata Source Plugin] Libri.hu | kloon | Plugins | 27 | 02-25-2024 01:27 PM |
[Metadata Source Plugin] DatabazeKnih (cz) | baghira | Plugins | 240 | 10-08-2023 05:13 AM |
[Metadata Source Plugin] BOL.com (DE) | Pr.BarnArt | Plugins | 52 | 06-01-2023 04:50 PM |
Plugin Request for MondoUrania.com | stragnagn | Plugins | 3 | 10-27-2013 01:50 PM |