08-24-2019, 01:52 PM | #1 |
Banned
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
[Plugin] AddSeriestoTitle
This plugin just takes the calibre series information and adds it to the title. A lot of readers do not interpret these pseudo-standard metadata. Sorting and grouping those series of books does not show them in the right order.
I know that calibre can do that as well, but i dont like/use calibre for personal reasons. Epubmetadata can do that as well - but its only available for windows. Series information is splitted and checked if there is a minor series or if this is zero - only major version is taken into account. If the minor series is present and greater zero its added as well. If the series name is already present at the beginning in the title this is taken into account. Currently the format is fixed - major and minor series are fornatted as two digit values with leading zeroes. The title is stored in a new meta data entry to avoid repetitive series information in the title. If you change the title only afterwards this will not considered if you start the plugin again. Don't be so strict when you look at the source code, it's my first Python program and my first plugin. I've stolen a lot of from other plugins, from stackoverflow and Diapdealer, KevinH and Doitso did their best to create this plugin. As beautifulsoup at least still had problems with namespaces and xml fragments i used the quickparser in the end. I've tested this plugin with 0.9.17 only, but i guess its running in much older versions as well. Copyright Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Last edited by Vroni; 08-24-2019 at 03:16 PM. |
08-26-2019, 11:55 AM | #2 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I have added this to the Plugin Index.
Thank you! Last edited by KevinH; 08-26-2019 at 02:25 PM. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] QuickPrefsEdit - Edit plugin prefs json files. | slowsmile | Plugins | 3 | 07-25-2018 08:14 PM |
Goodread Perception Expander plugin not shown on plugin list (kobo h2o) | www | KOReader | 4 | 09-28-2017 10:34 AM |
Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 10:49 PM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |