Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2016, 07:06 PM   #1141
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by version365 View Post
I installed the latest test version, it works.. I can see the new average rating is written in the book. thanks a lot..
But, I don't see any column for this to add to my custom columns, there's only 'Words' and 'Chapters'..
Site specific metadata aren't available in the dropdowns in the Custom Columns tab. You have to use custom_columns_settings in personal.ini. That way it can be different for each site.

Example with comments quoted from plugin defaults.ini:
Spoiler:
Code:
## (Plugin Only) - You can also populate calibre custom columns with
## the site specific metadata using custom_columns_settings (but only
## if 'Allow custom_columns_settings from personal.ini' is checked in
## the plugin GUI config.)  There are three parts, the entry name,
## then the label of the calibre custom column, then (optionally) a
## 'mode'.  'r' to Replace any existing values, 'a' to Add to existing
## value (use with tag-like columns), and 'n' for setting on New books
## only.  (Default is 'r'.)
## Literal strings can be set into custom columns using double quotes.
## Each metadata=>column mapping must be on a separate line and each
## needs to have one space at the start of each line.

#custom_columns_settings:
# cliches=>#acolumn
# themes=>#bcolumn,a
# timeline=>#ccolumn,n
# "FanFiction"=>#collection

[literotica.com]
add_to_custom_columns_settings:
 averrating=>#numrating


Quote:
Originally Posted by version365 View Post
I see that you already added it as taking an average, which is great.
However I would like to propose that
1. If the story has 3 or less chapters, take average.
2. If the story has 4 or more chapters, keep all chapter's ratings separate while creating the book title page, but take average for the 'averrating' column value. (If that's possible and not much of a burden for you).
Let's see out the average works out for a while first. I more than half expect to find out there are stories/chapters without ratings that will cause problems.
JimmXinu is offline   Reply With Quote
Old 03-08-2016, 01:57 AM   #1142
version365
Enthusiast
version365 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2016
Device: none
Exclamation

Quote:
Originally Posted by JimmXinu View Post
[literotica.com]
add_to_custom_columns_settings:
averrating=>#numrating
After I added the following lines in personal.ini
Code:
[literotica.com]
add_to_custom_columns_settings:
 averrating=>#lit_rating
(my custom column lookup name is #lit_rating)

I am getting errors for every download. ['Story' object has no attribute 'setDescription']
The problem persists even after removing those added lines from personal.ini
What happened?
version365 is offline   Reply With Quote
Old 03-08-2016, 04:53 PM   #1143
version365
Enthusiast
version365 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by version365 View Post
I am getting errors for every download. ['Story' object has no attribute 'setDescription']
Actually, I had to add the following lines for it to work,
Code:
custom_columns_settings:
averrating=>#lit_rating
But, inspecting further reveals that it's actually the new test version's problem.
Downloading multi-chapter stories from Literotica works, but if the story has single chapter it gives the error ['Story' object has no attribute 'setDescription'].
Fix it please..


On a different note, if the story title has ' / ' in it (e.g. Catwoman / Huntress: Eros Risen), the part after the ' / ' is discarded and only prints 'Catwoman' in the title.
Can something be done about that?
version365 is offline   Reply With Quote
Old 03-09-2016, 11:47 AM   #1144
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
(I dunno why, but apparently MR isn't sending me notices of new posts recently. )

The 'Story' object has no attribute 'setDescription' issue was my mistake.

New test version posted (direct link)

2016-03-08
- Fix adapter_literotica setDescription

As for title of "Catwoman" vs "Catwoman / Huntress: Eros Risen", you'd have to take it up with the author. Multi part stories on literotica take their title from the overall title, not the first chapter title. In this case, it comes from the line "Catwoman: 2 Part Series".
JimmXinu is offline   Reply With Quote
Old 03-09-2016, 02:34 PM   #1145
version365
Enthusiast
version365 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2016
Device: none
Thanks for the new test version.. it works well..

Also, thanks for clarifying the Catwoman issue..
version365 is offline   Reply With Quote
Old 03-11-2016, 01:37 PM   #1146
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted (direct link)

2016-03-11
- Make HTTP 410 StoryDoesNotExist in tthfanfic.org, make conn fail trace debug, not error level.
- Allow a second kind of 'chapter missing' for portkey.org.
- Change fanfiction.mugglenet.com to base_efiction after site update.
- Hide user/pass in debug log, add 'View Safe personal.ini' option that also hides user/pass.
- Re-organize personal.ini config tab in plugin.

See attached for the changes to personal.ini config tab.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	301
Size:	51.0 KB
ID:	147055  
JimmXinu is offline   Reply With Quote
Old 03-12-2016, 01:06 AM   #1147
agumon1123
Member
agumon1123 began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2016
Device: none
When I download from qoutev i noticed that the story status in calibre keeps saying in progress even if the story is completed. Also is there any way for the author to show up instead of it staying anonymous and to download the pictures that are in the chapters? I included a log and some screenshots for examples.

example urls:
https://www.quotev.com/story/5494719...o-Be-Forgotten

https://www.quotev.com/story/6621204/Descendants/1
Attached Thumbnails
Click image for larger version

Name:	All example 1.PNG
Views:	263
Size:	312.7 KB
ID:	147061   Click image for larger version

Name:	all example 2.PNG
Views:	275
Size:	281.1 KB
ID:	147062   Click image for larger version

Name:	Calibre list example.PNG
Views:	285
Size:	265.6 KB
ID:	147063   Click image for larger version

Name:	status.PNG
Views:	334
Size:	99.0 KB
ID:	147065  
Attached Files
File Type: txt calibre log.txt (21.6 KB, 223 views)
agumon1123 is offline   Reply With Quote
Old 03-12-2016, 12:32 PM   #1148
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted

Quote:
Originally Posted by agumon1123 View Post
When I download from qoutev i noticed that the story status in calibre keeps saying in progress even if the story is completed. Also is there any way for the author to show up instead of it staying anonymous and to download the pictures that are in the chapters? I included a log and some screenshots for examples.
Part of those issues were already addressed, but apparently quotev.com made more changes again.

The new test version addresses problems with the author, status and favorites metadata.

It also adds a feature to include chapter specific images in the chapters when they aren't the same as the cover image. This part is a new feature that may be less than perfect--I only tested with the two story URLs agumon1123 provided.

New test version posted (direct link)

2016-03-12
- Yet more fixes for quotev.com changes.
- Find and include chapter specific images for quotev.com.
JimmXinu is offline   Reply With Quote
Old 03-12-2016, 12:39 PM   #1149
Arnos
Junior Member
Arnos began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Kindle
Any chance that you could add http://www.wuxiaworld.com to the supported sites?
Thanks!
Arnos is offline   Reply With Quote
Old 03-12-2016, 01:07 PM   #1150
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Hello Jim!
You were so kind as to make FFF add some extra information from some sites. Could you possibly extend this to include hpfandom, too?
Mostly, I would be interested in the (total) number of reviews, here is a sample story: example story
Thank you!
firefoxxy is offline   Reply With Quote
Old 03-13-2016, 11:31 AM   #1151
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Arnos View Post
Any chance that you could add http://www.wuxiaworld.com to the supported sites?
Thanks!
That site is not a very good candidate. The structure looks inconsistent (or at least more complex). Also, I'm not adding new sites these days unless they personally interest me or are easy to do--IE, variations on already supported sites.

However, I welcome code contributions from others to add new sites.
JimmXinu is offline   Reply With Quote
Old 03-13-2016, 12:58 PM   #1152
rishidiams
Member
rishidiams began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2016
Device: Kindle paperwhite
Cleaning up tags

First off, I am a complete novice at this and anything I've learned has been through these forums and the Wiki, so my understanding of how this works is very limited.

I have two questions:

1 - Occasionally on AO3 someone will list a relationship but not include those characters in the character list.

This is one example I am currently banging my head over:
http://archiveofourown.org/works/6222439

The problem I am having with this is two-fold.
a) In these instances, I want to include those characters in my Characters column in Calibre. I've managed to split the relationship into two separate entries and both appear when I go to the Custom Columns tab, Characters entry and select Relationships, but I can't make them appear when I select Characters instead. Leaving that drop down box empty results in no data appearing at all.

Allow custom_columns_settings from personal.ini to override is selected.

b) I wish to have "Tenth Doctor" renamed to The Doctor.Tenth, but it does not work when splitting a relationship.

The relevant portions of my personal.ini:

[archiveofourown.org]
include_subject_tags: characters, status, fandoms, freeformtags, ships

[defaults]
add_to_extra_valid_entries:mycharacters,mytags,mys tatus
include_in_mycharacters:characters,ships
custom_columns_settings:
mycharacters=>#characters
replace_metadata:
ships=>(.*)[/&](.*)=>\1 \, \2
^Tenth Doctor$=>The Doctor.Tenth


2 - I'd like to remove one category if another one appears. In other words, if the freeformtags include "Alternate Universe.Human", I would like to remove the redundant tag "Alternate Universe" if it also exists.


Thank you all, I can't imagine where I'd be with this if I hadn't had your help up to this point.

~R
rishidiams is offline   Reply With Quote
Old 03-13-2016, 02:23 PM   #1153
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by rishidiams View Post
...
1 - Occasionally on AO3 someone will list a relationship but not include those characters in the character list.

This is one example I am currently banging my head over:
http://archiveofourown.org/works/6222439

The problem I am having with this is two-fold.
a) In these instances, I want to include those characters in my Characters column in Calibre. I've managed to split the relationship into two separate entries and both appear when I go to the Custom Columns tab, Characters entry and select Relationships, but I can't make them appear when I select Characters instead. Leaving that drop down box empty results in no data appearing at all.
...
b) I wish to have "Tenth Doctor" renamed to The Doctor.Tenth, but it does not work when splitting a relationship.
...
2 - I'd like to remove one category if another one appears. In other words, if the freeformtags include "Alternate Universe.Human", I would like to remove the redundant tag "Alternate Universe" if it also exists.
You should have a leading comma(,) in add_to_extra_valid_entries, otherwise mycharacters will be falsely concatenated with whatever is before it. That, I believe, is why it isn't showing up in your custom column.
Code:
[defaults]
add_to_extra_valid_entries:,mycharacters,mytags,mystatus
You are splitting ships, when I suspect you mean to be splitting mycharacters:
Code:
[defaults]
...
replace_metadata:
 mycharacters=>(.*)[/&](.*)=>\1 \, \2
...
"Tenth Doctor" isn't becoming "The Doctor.Tenth" for you because you are looking for exactly "Tenth Doctor", which isn't going to match " Tenth Doctor " (note spaces added when you did the mycharacters split) or the Doctor part of "Tenth Doctor/Rose Tyler". Instead I suggest limiting it to mycharacters and ships only, and allowing for "The " in front of it so you don't end up with "The The Doctor.Tenth":
Code:
replace_metadata:
 ...
 mycharacters,ships=>(The )?Tenth Doctor=>The Doctor.Tenth
As for freeformtags "Alternate Universe.Human" vs "Alternate Universe", that's tricky. If you wanted to remove "Alternate Universe.Human" in favor of keeping "Alternate Universe" it would be easy. I can't find a AO3 story by searching for such a tag. Can you provide an example?

All changes together:
Spoiler:

Code:
[defaults]
add_to_extra_valid_entries:,mycharacters,mytags,mystatus
include_in_mycharacters:characters,ships

custom_columns_settings:
 mycharacters=>#characters
replace_metadata:
 mycharacters=>(.*)[/&](.*)=>\1 \, \2
 mycharacters,ships=>(The )?Tenth Doctor=>The Doctor.Tenth
JimmXinu is offline   Reply With Quote
Old 03-13-2016, 02:25 PM   #1154
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
You were so kind as to make FFF add some extra information from some sites. Could you possibly extend this to include hpfandom, too?
Mostly, I would be interested in the (total) number of reviews, here is a sample story: example story
In the next test version.
JimmXinu is offline   Reply With Quote
Old 03-13-2016, 03:01 PM   #1155
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Quote:
Originally Posted by JimmXinu View Post
In the next test version.
Thank you, Jim!
firefoxxy is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 02:22 AM.


MobileRead.com is a privately owned, operated and funded community.