Register Guidelines E-Books Today's Posts Search

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 12-12-2014, 11:09 AM   #3571
Jessica_June
Member
Jessica_June began at the beginning.
 
Jessica_June's Avatar
 
Posts: 11
Karma: 10
Join Date: Dec 2014
Device: none
Quote:
Originally Posted by JimmXinu View Post
FYI, the adapter for that site was written by one of the other developers. I've asked them to take a look at it when they can, but it may be a while.
Thank you.
Jessica_June is offline  
Old 12-12-2014, 06:01 PM   #3572
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
@Jessica_June: Try the attached file.
Attached Files
File Type: zip FanFictionDownLoader.zip (913.4 KB, 135 views)
cryzed is offline  
Old 12-12-2014, 07:33 PM   #3573
mehetabelo
e-Bibliophile
mehetabelo began at the beginning.
 
mehetabelo's Avatar
 
Posts: 60
Karma: 10
Join Date: Jun 2009
Location: California
Device: Paperwhite 1-3, Kobo AuraHD, Boox Afterglow2
I have one other questions specifically regarding storiesonline again. Is there a code to allow the download of the 'score'? I'm figuring that it is no, since in order to see it from the story starting page, you have to go to 'More details' or see it. I just decided it wouldn't hurt to ask. I did looked through the defaults.ini pretty extensively to double check that there wasn't an option.

Last edited by mehetabelo; 12-12-2014 at 07:36 PM.
mehetabelo is offline  
Old 12-13-2014, 04:41 AM   #3574
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
mehetabelo: At the moment no. It is on the story list page for the author which is already accessed, so it isn't hard to get.

In fact, adding the following to the adapter at about line 195 will do it:
Code:
        score = lc2.findNext('th', {'class' : 'num'}).text
        if score != '-':
            self.story.setMetadata('score', score)
And "score_label:Score" needs to be added to the ini file in the storiesonline.net section.

Maybe the score should be converted to a number.

And maybe something other than "score" should be used. That's what the site uses, but, there might be a more common term used in FFDL. Though I couldn't find one.
davidfor is offline  
Old 12-13-2014, 11:14 AM   #3575
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: 7,005
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Attached is a test version with davidfor's score collecting change for storiesonline. Remember that you'll need to add it to your config before it will appear. To see it on the title page, something like:
Code:
extra_titlepage_entries:size,universeHTML,sitetags,notice,score

Last edited by JimmXinu; 12-19-2014 at 12:46 AM. Reason: Remove obsolete test versions - replaced by newer test or released version.
JimmXinu is offline  
Old 12-13-2014, 01:24 PM   #3576
Jessica_June
Member
Jessica_June began at the beginning.
 
Jessica_June's Avatar
 
Posts: 11
Karma: 10
Join Date: Dec 2014
Device: none
Quote:
Originally Posted by cryzed View Post
@Jessica_June: Try the attached file.
After a little fiddling about that did the trick, thank you.

I did notice that there are two versions of a story on the site:

http://fictionmania.tv/stories/readt...l?storyID=1234

and

http://fictionmania.tv/stories/readx...l?storyID=1234

the down loader doesn't want to have anything to do with the second one.

Last edited by Jessica_June; 12-13-2014 at 01:36 PM. Reason: Noticed two sorts of story URLs and didn't want to spam the board with another post.
Jessica_June is offline  
Old 12-13-2014, 02:48 PM   #3577
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
I'll take care of that as soon as I'm home.
cryzed is offline  
Old 12-14-2014, 12:54 AM   #3578
mehetabelo
e-Bibliophile
mehetabelo began at the beginning.
 
mehetabelo's Avatar
 
Posts: 60
Karma: 10
Join Date: Jun 2009
Location: California
Device: Paperwhite 1-3, Kobo AuraHD, Boox Afterglow2
Awesome. It's working out great, and now that I understand the ini file setup a bit more I've done some additional custom columns for various websites.
mehetabelo is offline  
Old 12-14-2014, 07:55 PM   #3579
mehetabelo
e-Bibliophile
mehetabelo began at the beginning.
 
mehetabelo's Avatar
 
Posts: 60
Karma: 10
Join Date: Jun 2009
Location: California
Device: Paperwhite 1-3, Kobo AuraHD, Boox Afterglow2
If you can't tell by now, I'm spending some time customizing calibre for downloads and the like. I've been meaning to do it for a long time.
Now, I'm trying to figure out how to customize the publisher name. IE instead of saying www.fanfiction.net saying ff.net or something similar. I've gone through the default.ini looking for a setting, and I can't find one.

Though, I did find siteabbrev_label:Site Abbrev ... but I don't know what that's used for. I did test to see if I was reading it wrong, and if that was the option, but it wasn't.

I also tried doing it with "ff.net"=>Publisher in custom column settings, just to see if it worked even though those were specifically for custom columns. It didn't, of course. So, is there a setting to allow for this? If there isn't, that's fine. It's not hurting me, was just curious if it was possible.

One last thing, specific to ff.net. I noticed in the default.ini that dramione.org has an option for follows and favs. I have tried a couple variations for ff.net, and nothing worked. Is this an option for ff.net as well?

Last edited by mehetabelo; 12-14-2014 at 09:48 PM. Reason: Added question.
mehetabelo is offline  
Old 12-14-2014, 11:10 PM   #3580
chrnno
Connoisseur
chrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with others
 
Posts: 50
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
What you are looking for(or at least one way of doing it) is replace metadata, specifically like this with a few other examples that first came to mind:

Code:
replace_metadata:
 site=>archiveofourown.org=>Archive of Our Own
 site=>www.fanfiction.net=>FanFiction.net
 site=>www.fictionpress.com=>FictionPress
 site=>www.tthfanfic.org=>Twisting the Hellmouth
In case it doesn't show up properly or it is not clear you need the initial space so it has to be ' site' instead of 'site' at the beginning.

As for favs I use under "[www.fanfiction.net]" this:
Code:
custom_columns_settings:
 favs=>#favs
 follows=>#follows
 reviews=>#reviews
Just don't forget to create the custom columns in calibre preferences so it has a place to write to.

Last edited by chrnno; 12-14-2014 at 11:24 PM.
chrnno is online now  
Old 12-14-2014, 11:40 PM   #3581
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: 7,005
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by chrnno View Post
What you are looking for(or at least one way of doing it) is replace metadata, specifically like this with a few other examples that first came to mind:

Code:
replace_metadata:
 site=>archiveofourown.org=>Archive of Our Own
 site=>www.fanfiction.net=>FanFiction.net
 site=>www.fictionpress.com=>FictionPress
 site=>www.tthfanfic.org=>Twisting the Hellmouth
...
Correct--'site' is what's populated into the Publisher field.
JimmXinu is offline  
Old 12-15-2014, 10:33 AM   #3582
Lantz
Junior Member
Lantz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2012
Device: Kindle Fire
Good day I seem to be having a problem as I can no longer download stories from any sites (have tried 4) the following is the error message I receive but have no clue what to do any ideas?

calibre, version 2.9.0 (win32, isfrozen: True)
Failed to Download Stories: Failed: Download FanFiction Book

Download FanFiction Book
FFDL:INFO:calibre_plugins.fanfictiondownloader_plu gin.jobs(36):FanFictionDownLoader v2.0.9
FFDL:INFO:calibre_plugins.fanfictiondownloader_plu gin.jobs(40):Adding jobs for URLs:
FFDL:INFO:calibre_plugins.fanfictiondownloader_plu gin.jobs(42):http://ficwad.com/story/167434
FFDL:INFO:calibre_plugins.fanfictiondownloader_plu gin.jobs(78):Logfile for book ID None (Harry Potter and the east wing of Hogwarts)
FFDL:INFO:calibre_plugins.fanfictiondownloader_plu gin.jobs(79):urlhttp://ficwad.com/story/167434) idNone)
Python function terminated unexpectedly
u'plugin_path' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 193, in main
File "site-packages\calibre\utils\ipc\worker.py", line 133, in arbitrary_n
File "calibre_plugins.fanfictiondownloader_plugin.jobs" , line 99, in do_download_for_worker
KeyError: u'plugin_path'

Python function terminated unexpectedly
'NoneType' object has no attribute '__getitem__' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 193, in main
File "site-packages\calibre\utils\ipc\worker.py", line 133, in arbitrary_n
File "calibre_plugins.fanfictiondownloader_plugin.jobs" , line 83, in do_download_worker
File "calibre_plugins.fanfictiondownloader_plugin.jobs" , line 83, in <lambda>
TypeError: 'NoneType' object has no attribute '__getitem__'

Thank you for any help,
lance
Lantz is offline  
Old 12-15-2014, 10:36 AM   #3583
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
We had a very similar error report recently. Could you try and follow the advice given by Jimm on the linked page?
cryzed is offline  
Old 12-15-2014, 11:04 AM   #3584
mehetabelo
e-Bibliophile
mehetabelo began at the beginning.
 
mehetabelo's Avatar
 
Posts: 60
Karma: 10
Join Date: Jun 2009
Location: California
Device: Paperwhite 1-3, Kobo AuraHD, Boox Afterglow2
Quote:
Originally Posted by chrnno View Post
As for favs I use under "[www.fanfiction.net]" this:
Code:
custom_columns_settings:
 favs=>#favs
 follows=>#follows
 reviews=>#reviews
Just don't forget to create the custom columns in calibre preferences so it has a place to write to.
*Blush* When I said I tried it, I had... just apparently I'd put it under the wrong website, so when I kept making changes, and then trying using the 'Update Metadata' option, and it wasn't working, I didn't think that was an option under fanfiction.net. After going back and seeing the mistake, I feel like an idiot.

As for the site option, it works wonderfully! Thanks chrnno! And JimmXinu for verifying it.
mehetabelo is offline  
Old 12-15-2014, 08:21 PM   #3585
ThatLibraryRat
Member
ThatLibraryRat will become famous soon enoughThatLibraryRat will become famous soon enoughThatLibraryRat will become famous soon enoughThatLibraryRat will become famous soon enoughThatLibraryRat will become famous soon enoughThatLibraryRat will become famous soon enoughThatLibraryRat will become famous soon enough
 
Posts: 24
Karma: 718
Join Date: Dec 2014
Device: Bookeen Frontlite Muse
Thank you for creating this useful plugin!

I have a weird problem with it lately. I use the portable version on a key. It work just fine everywhere but on my personal computer =/
I installed calibre x64 one time long ago (because I was tired and didn't have the eyes open enough to see the big '64' smack on the logo) but have reinstalled the x86 version since.

And 80% of the 'update checking function' times... I keep receive this:

calibre, version 2.12.0
ERREUR : Exception non gérée: <b>UnicodeDecodeError</b>:'utf8' codec can't decode byte 0xfb in position 41: invalid start byte

calibre 2.12 Portable isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: FanFictionDownLoader && Kobo Utilities
Traceback (most recent call last):
File "calibre_plugins.fanfictiondownloader_plugin.dialo gs", line 610, in do_loop
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfb in position 41: invalid start byte

I really don't know how or what to do after deleting calibre on the computer with CCleaner and co.

It's most annoying when trying to check the update of my extensive (a little over 800) library.

Please help T.T

Also, does anyone know how to create a column to see witch epub was created with FanFictionDownloader or not?
It would help with my management =)

(If I'm butchering English, I'm deeply sorry. I'm kinda French and not really bright with languages =/ )

Thank for reading until this point!
ThatLibraryRat is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 1846 08-02-2025 10:44 PM
[GUI Plugin] Resize Cover kiwidude Plugins 100 07-10-2025 08:50 AM
[GUI Plugin] Find Duplicates kiwidude Plugins 1124 04-18-2025 09:19 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 03:43 PM.


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