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 02-05-2016, 12:53 PM   #991
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version (direct link)

2016-02-02
Fix for portkey.org--Don't use cache on first hit in case added adult cookie.
Add (partial) translations for Estonian and Norwegian Bokmål
JimmXinu is online now   Reply With Quote
Old 02-05-2016, 02:40 PM   #992
Nightliss
Junior Member
Nightliss began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2016
Device: Calibre on Windows 10/Xperia Z2
Hey,

I'm getting:

<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

while trying to download anything from storiesonline.net. Why?

Newest Calibre with newest FanFicFare (available from plugins menu in Calibre) on Windows 10 x64.

Any help is appreciated
Nightliss is offline   Reply With Quote
Old 02-05-2016, 02:52 PM   #993
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Nightliss View Post
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

while trying to download anything from storiesonline.net. Why?

Newest Calibre with newest FanFicFare (available from plugins menu in Calibre) on Windows 10 x64.
Working fine for me with calibre 2.50(64bit) Windows 8, latest test version FFF.

SSL problems are generally not the plugins fault. On windows they tend to be issues with the OS cert base.

Take a look at the solution from this earlier report of a similar problem.
JimmXinu is online now   Reply With Quote
Old 02-07-2016, 07:07 AM   #994
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Hello Jim!

I was wondering if the 'title-sorting' option does not work for me because of my language setting in calibre. (Sorry if this not what it is really called, as I am using the German language version. It's in the basic options of FFF, together with the 'author-sorting'.)

When I download English fiction, a story called 'A Wolf to Potters' stays as it is, while a story called 'Das Vermaechtnis des Severus Snape' is - correctly - changed into 'Vermaechtnis des Severus Snape, Das'. Is there a way to get FFF to sort the English titles too, without having to change the calibre language setting?

Examples:
German story
English story

Thank you!
firefoxxy is offline   Reply With Quote
Old 02-07-2016, 10:47 AM   #995
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
I was wondering if the 'title-sorting' option does not work for me because of my language setting in calibre. (Sorry if this not what it is really called, as I am using the German language version. It's in the basic options of FFF, together with the 'author-sorting'.)

When I download English fiction, a story called 'A Wolf to Potters' stays as it is, while a story called 'Das Vermaechtnis des Severus Snape' is - correctly - changed into 'Vermaechtnis des Severus Snape, Das'. Is there a way to get FFF to sort the English titles too, without having to change the calibre language setting?
That's a Calibre feature. So here's what I've found, but be aware that I may not know all the details.

Look in Calibre Preferences, under Tweaks, search for per_language_title_sort_articles. That is a data structure that defines what words are "articles" for sort strings in different languages.

The comment associated with it says that By default, calibre uses a combination of articles from English and whatever language the calibre user interface is set to. However, in practice it doesn't seem to do that. I suspect the comment is out of date.

I found that by copying the English articles(A,The,An) to the 'deu' settings does what you want. See below:

Code:
# Set the list of words considered to be "articles" for sort strings

per_language_title_sort_articles = {'afr': ("'n\\s+", 'Die\\s+'), 'nld': ('De\\s+', 'Het\\s+', 'Een\\s+', "'n\\s+", "'s\\s+", 'Ene\\s+', 'Ener\\s+', 'Enes\\s+', 'Den\\s+', 'Der\\s+', 'Des\\s+', "'t\\s+"), 'por': ('A\\s+', 'O\\s+', 'Os\\s+', 'As\\s+', 'Um\\s+', 'Uns\\s+', 'Uma\\s+', 'Umas\\s+'), 'ron': ('Un\\s+', 'O\\s+', 'Ni\xc5\x9fte\\s+'), 'hun': ('A\\s+', 'Az\\s+', 'Egy\\s+'), 'spa': ('El\\s+', 'La\\s+', 'Lo\\s+', 'Los\\s+', 'Las\\s+', 'Un\\s+', 'Una\\s+', 'Unos\\s+', 'Unas\\s+'), 'swe': ('En\\s+', 'Ett\\s+', 'Det\\s+', 'Den\\s+', 'De\\s+'), 'ita': ('Lo\\s+', 'Il\\s+', "L'", 'La\\s+', 'Gli\\s+', 'I\\s+', 'Le\\s+'), 'fra': ('Le\\s+', 'La\\s+', "L'", 'Les\\s+', 'Un\\s+', 'Une\\s+', 'Des\\s+', 'De\\s+La\\s+', 'De\\s+', "D'"), 'eng': ('A\\s+', 'The\\s+', 'An\\s+'), 'tur': ('Bir\\s+',), 'deu': ('A\\s+', 'The\\s+', 'An\\s+', 'Der\\s+', 'Die\\s+', 'Das\\s+', 'Den\\s+', 'Ein\\s+', 'Eine\\s+', 'Einen\\s+', 'Dem\\s+', 'Des\\s+', 'Einem\\s+', 'Eines\\s+'), 'ell': ('O\\s+', 'I\\s+', 'To\\s+', 'Ta\\s+', 'Tus\\s+', 'Tis\\s+', "'Enas\\s+", "'Mia\\s+", "'Ena\\s+", "'Enan\\s+")}
You can test this by using Calibre's Edit metadata on an existing book. The button next to the title edit boxes applies the 'sort' pattern. See attached.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	264
Size:	6.8 KB
ID:	146113  
JimmXinu is online now   Reply With Quote
Old 02-07-2016, 11:15 AM   #996
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Thank you Jim! Added the code, tested it, and it works.

(Doing the title-sort on existing books manually, as you showed on your screenshot, has worked even before changing the code - I was just too lazy to do it manuallly all the time.)
firefoxxy is offline   Reply With Quote
Old 02-09-2016, 04:05 AM   #997
fathertyme
Enthusiast
fathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheese
 
Posts: 44
Karma: 1000
Join Date: Jul 2014
Location: Planet Earth
Device: Samsung S2
I was glancing through the storiesonline section of the plugin, and ran across this:

(lines 319-327)
Code:
        status = lc4.find('span', {'class' : 'ab'})
        if  status != None:
            self.story.setMetadata('status', 'In-Progress')
            if "Last Activity" in status.text:
                # date is passed as a timestamp and converted in JS.
                value = status.findNext('noscript').text
                self.story.setMetadata('dateUpdated', makeDate(stripHTML(value), self.dateformat))
        else:
            self.story.setMetadata('status', 'Completed')
What is odd here is that if I'm reading this right, the plugin should always set status to either "Completed" or "In-Progress"

now... Completed works fine, but I does not set In-Progress (and incomplete would be nice as well)

it always seems to leave anything as either complete or blank


am i reading this wrong?

Last edited by fathertyme; 02-09-2016 at 04:09 AM.
fathertyme is offline   Reply With Quote
Old 02-09-2016, 08:03 AM   #998
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
No, you are not reading it wrong. But, it seems to be working correctly here. I tested a few stories and they all ended up with either "Completed" or "In-Progress" as a tag.

Do you have some samples that it fails for?

As to the incomplete, I agree. From memory, the plugin uses "Completed" or "In-Progress" tags, but nothing that I could use for incomplete.
davidfor is offline   Reply With Quote
Old 02-09-2016, 10:34 AM   #999
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
When a book doesn't have a cover, I like to use the calibre-generated one, but if the book is part of a series (the default subtitle template shows the series) then the cover is off.

The series manually set in callibre is respected.

The cover generated by FFF evaluates the subtitle to: "series [series_index] - 0"
The cover generated immediately afterward by calibre ==> Edit metadata evaluates the subtitle to: "series - formatted_series_index" (uses roman numerals)


So it looks like a) it is including the series_index in the value of the series itself, and b) it isn't using the usual template (either the default or the user-set one)
eschwartz is offline   Reply With Quote
Old 02-09-2016, 11:14 AM   #1000
fathertyme
Enthusiast
fathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheese
 
Posts: 44
Karma: 1000
Join Date: Jul 2014
Location: Planet Earth
Device: Samsung S2
OK, I removed and then re-downloaded the following:

http://storiesonline.net/s/12770

upon completion, status was blank.

I have made VERY few changes to the config (basically just passwords/logins)
fathertyme is offline   Reply With Quote
Old 02-09-2016, 11:19 AM   #1001
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by fathertyme View Post
I was glancing through the storiesonline section of the plugin, and ran across this:

...

now... Completed works fine, but I does not set In-Progress (and incomplete would be nice as well)
I admit the code looks a bit suspect. But I didn't write that adapter and unless you can provide URLs to stories that don't come out correctly, I'm going to assume that the original coder knew better than I do.

As for a third 'Incomplete' state, again, I need examples (and an explanation why it's different from In-Progress).

FFF generally assumes that In-Progress and Completed are the only status states. But there are a (very) few sites (FimF for example) that have additional status states. (While looking at this I found a couple adapters that use 'In Progress' with no '-'. Will correct in next version.)

Last minute addition. I see the In-Progress status fine:

Re: http://storiesonline.net/s/12770/ever-and-always
Ever and Always by Banadin
Title: Ever and Always
Genre: Drama
Status: In-Progress
JimmXinu is online now   Reply With Quote
Old 02-09-2016, 11:42 AM   #1002
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by eschwartz View Post
The cover generated by FFF evaluates the subtitle to: "series [series_index] - 0"
The cover generated immediately afterward by calibre ==> Edit metadata evaluates the subtitle to: "series - formatted_series_index" (uses roman numerals)

So it looks like a) it is including the series_index in the value of the series itself, and b) it isn't using the usual template (either the default or the user-set one)
Interesting. I see that issue, too. The normalization of the series entry must happen farther upstream than the 'mi'(MetaInformation) object. The code for calling the GC plugin already re-fetches the updated DB 'mi', it's pretty trivial to do that before the calibre gen cover too.

Thanks for pointing that out.

New test version posted (direct link)

2016-02-09
Add automatic adding of unrecognized metadata in base_efiction. For tgstorytime.com.
Fix 'In Progress' to 'In-Progress' in fanfiktion.de & ficbook.net like all the others.
Fix for Calibre generated covers.
Update translations.
JimmXinu is online now   Reply With Quote
Old 02-09-2016, 11:48 AM   #1003
fathertyme
Enthusiast
fathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheese
 
Posts: 44
Karma: 1000
Join Date: Jul 2014
Location: Planet Earth
Device: Samsung S2
Quote:
Originally Posted by JimmXinu View Post
As for a third 'Incomplete' state, again, I need examples (and an explanation why it's different from In-Progress).
Incomplete is defined by storiesonline as a story that has been abandoned. The flag gets set after a long enough period of time has passed without updates.

example:
http://storiesonline.net/s/54078

Quote:
Last minute addition. I see the In-Progress status fine:

Re: http://storiesonline.net/s/12770/ever-and-always
Ever and Always by Banadin
Title: Ever and Always
Genre: Drama
Status: In-Progress
Interesting. This implies that it's just me that is having this issue. I'll have to investigate further to try and figure it out on my end.
fathertyme is offline   Reply With Quote
Old 02-09-2016, 12:13 PM   #1004
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by fathertyme View Post
Incomplete is defined by storiesonline as a story that has been abandoned. The flag gets set after a long enough period of time has passed without updates.

example:
http://storiesonline.net/s/54078
Okay. I can code it to look for Incomplete and Inactive and set status to be something like:
  • Incomplete and Inactive
  • Incomplete
  • Abandoned

Opinions? My inclination is to go with Incomplete and Inactive except that other statuses are single word.
JimmXinu is online now   Reply With Quote
Old 02-09-2016, 12:19 PM   #1005
fathertyme
Enthusiast
fathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheesefathertyme can extract oil from cheese
 
Posts: 44
Karma: 1000
Join Date: Jul 2014
Location: Planet Earth
Device: Samsung S2
I've been manually setting those as "Incomplete" tho "Abandoned" would be more precise
fathertyme 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 09:50 AM.


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