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 11-24-2015, 04:58 PM   #766
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,316
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by ij26 View Post
Incidentally, while editing personal.ini, I also noticed:
Code:
[www.fimfiction.net]
is_adult:true
#fail_on_password: false
Does uncommenting that allow password-protected stories to be downloaded? Why is it commented by default?
The default is for FanFicFare to stop and prompt you for a password. Setting fail_on_password true will cause password protected stories to fail entirely.
JimmXinu is offline   Reply With Quote
Old 11-24-2015, 07:40 PM   #767
ij26
Member
ij26 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by JimmXinu View Post
The default is for FanFicFare to stop and prompt you for a password. Setting fail_on_password true will cause password protected stories to fail entirely.
So the commenting is redundant in this case; OK.

Quote:
Originally Posted by ij26 View Post
strictly speaking you don't have to log in to Fimfiction to see mature links; you just need the appropriate cookie set.
Thinking further, supporting Fimfiction logins could allow downloading from a user's bookshelves, or from search results within those shelves, without the user's having to make the selves public. (That's probably a bit harder than just displaying mature stories, though.)
ij26 is offline   Reply With Quote
Advert
Old 11-25-2015, 11:27 AM   #768
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,316
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by ij26 View Post
Thinking further, supporting Fimfiction logins could allow downloading from a user's bookshelves, or from search results within those shelves, without the user's having to make the selves public. (That's probably a bit harder than just displaying mature stories, though.)
Quote:
Originally Posted by JimmXinu View Post
New test version posted (direct link).

2015-11-24

- Set is_adult cookie for FimF on 'Get URLs from Page' if set in personal.ini.
I didn't remember that FimF uses an adult cookie when I replied the first time. I don't have any plans to add login.
JimmXinu is offline   Reply With Quote
Old 11-25-2015, 12:05 PM   #769
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,316
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New test version posted.

2015-11-25

- Fix for hpfandom.net change so one-shot stories will work correctly.
JimmXinu is offline   Reply With Quote
Old 11-29-2015, 08:19 PM   #770
ij26
Member
ij26 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by JimmXinu View Post
I didn't remember that FimF uses an adult cookie when I replied the first time. I don't have any plans to add login.
Disappointing, but fair enough; and the is_adult cookie feature for Fimfiction works, so thanks.

Further suggestions/requests:

Adding tags for Fimfiction stories' content ratings (Everyone/Teen/Mature); ideally including the option to update the tags for stories already downloaded. Is there a particular reason that that isn't currently done?

Support for www.fimfetch.net, a site that archives Fimfiction stories (albeit without character tags). (Maybe an option to automatically try there if a Fimfiction link doesn't work? That might be overboard, though.)

Support for Fimfiction series metadata. I've been adding it manually so far. This might be tricky, since Fimfiction just has individual stories linked to each other rather than formally named and numbered series; but it might be possible to develop a set of rules for naming and numbering series. Maybe when you download a story with series metadata, the plugin could automatically check your library for other stories in the series and update them accordingly, so prequels and interquels correctly bump prior stories to later numbers? Could still lead to messy situations; No Rest For The Traitor is listed a sequel to Horn And Wings, but Horn And Wings is password-protected, so you can't see what stories it might or might not be linked to. Would you want No Rest listed as part 2 of the series "Horn And Wings" (even though it's apparently actually fifth in a series starting with "Imbalanced")? I'm not sure.

Option to enter multiple URLs at once into "Get Story URLs from Web Page".

As for other sites to support: this is getting into feature creep territory; but at the same time, there are a lot of places on the Internet where you can find a wall of links to interesting content and wish you could easily bulk-save them to an organized collection to read at your leisure. Maybe a general website-saving feature that saves pages in HTMLZ format, reading title/author/date metadata where available but not bothering with any Readability-style cleanup of comments and sidebars and other junk? Or is there already a plugin that does that?

Specific sites that it'd be nice to be able to bulk-save from:
* Project Gutenberg.
* Project Gutenberg Australia.
* Wikisource.
* MIT Technology Review (example).
* Infinity Plus.
* Reddit (text posts).
* Less Wrong (including tags).
* Voat (text posts).
* Pastebin.
* halo.bungie.org.
* scp-wiki.net (though on the other hand, there's already someone producing regularly updated compilation ebooks).
* bdsmlibrary.com and its various mirrors.
* aryion.com (example collection).
* Google Docs/Drive (examples: The Sun is Tired, Peppy Greyskull's stories).
* Deviantart (example).
* Pony Fiction Vault (pull ebook links from blog posts?).
* Equestria Daily (download the story or stories that the blog post links to, but with the tags that EqD has assigned to it?).
* Equestria After Dark (same suggestion).
* creepypasta.org.
* creepypasta.com.
* Fluffybooru. My hopes aren't high for this one, since it's a pretty obscure and disreputable site. Example of a text post; formatting guide. Ideally, tags would be saved, "author:" tags would be converted into author metadata, and possibly the uploader name would be used as the author if one wasn't otherwise listed (since tagging wasn't very consistently enforced there last I checked).
* Speaking of disreputable: Gurochan. "Stories" are posted in threads mixed with discussion; but you could download all the posts in a thread posted with the same username and email as the OP.
* Archive.org backups of all of the above; including the old [orz.]gurochan.org.

Last edited by ij26; 11-30-2015 at 12:12 PM. Reason: punctuation, duplication
ij26 is offline   Reply With Quote
Advert
Old 11-30-2015, 12:12 PM   #771
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,316
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by ij26 View Post
Adding tags for Fimfiction stories' content ratings (Everyone/Teen/Mature); ideally including the option to update the tags for stories already downloaded. Is there a particular reason that that isn't currently done?
Rating is already collected. You can modify what's included in calibre's tags with the include_subject_tags ini parameter.

Quote:
Originally Posted by ij26 View Post
Support for www.fimfetch.net, a site that archives Fimfiction stories (albeit without character tags). (Maybe an option to automatically try there if a Fimfiction link doesn't work? That might be overboard, though.)
I'm not interested in writing code to support an archive site for an existing supported site. If someone else wants to write it, I will review and accept it.

Quote:
Originally Posted by ij26 View Post
Support for Fimfiction series metadata. I've been adding it manually so far. This might be tricky, since Fimfiction just has individual stories linked to each other rather than formally named and numbered series; ...
FanFicFare already collects prequel and sequel links. Due to lack of series name and allowing multiple sequels, that's as far as I plan to take it. This is a bit like AO3's tags--there's only so much we can reasonably do with the design decisions made by the source site.

Quote:
Originally Posted by ij26 View Post
Option to enter multiple URLs at once into "Get Story URLs from Web Page".
That is a deliberate design decision. FanFicFare is meant to be a story downloading tool, not a large scale harvesting tool. Admittedly, the line is fuzzy, but I judge that to be over it.

Quote:
Originally Posted by ij26 View Post
As for other sites to support: this is getting into feature creep territory; but at the same time, there are a lot of places on the Internet where you can find a wall of links to interesting content...
Outside the scope of this tool. FanFicFare is specifically intended for producing ebook versions of fiction stories for ebook readers and archiving. While there is support for a few original fiction sites, fanfiction is the primary focus--it's right in the name.

FanFicFare is an open source project under the Apache License. If you want to repurpose parts of the code into a more general page scrape -> ebook took, you can. But I'm not interested in making or supporting such a tool.
JimmXinu is offline   Reply With Quote
Old 11-30-2015, 01:45 PM   #772
saluli
Connoisseur
saluli began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jul 2015
Location: Curitiba - Brazil
Device: Kindle Paperwhite 3,
Recently all the storys I download from fanfiction.net are coming with the fandom in blank, and for what I remember, this worked before. So, I am assuming I broke something when editing the personal.ini...

Right now, my personal ini is like this:
Code:
[defaults]


is_adult:true
keep_summary_html:true
replace_br_with_p:true
#keep_style_attr: false
#keep_title_attr: false
strip_chapter_numbers:true
add_chapter_numbers:true
chapter_title_strip_pattern:^[0-9]+[\.: -]+
keep_in_order_characters:true
keep_in_order_category:true
keep_in_order_freeformtags:true
keep_in_order_genre:true
keep_in_order_fandoms:true
keep_in_order_ships:true
characters_label:Characters
ships_label:Relationships
series_label:Series
seriesUrl_label:Series URL
extratags_label:Extra Tags
titlepage_entries: seriesHTML,category,genre,language,characters,ships,status,datePublished,dateUpdated,dateCreated,rating,warnings,numChapters,numWords,site,description
collect_series: true
include_subject_tags:extratags, genre, category, characters, ships, status
extratags: Fanfiction
add_genre_when_multi_category: Crossover
chapter_title_addnew_pattern:${index}. (new) ${title}
include_titlepage: true
include_tocpage: true
add_to_custom_columns_settings: 
 fandoms=>#fandom
 description=>#summary



[www.fanfiction.net]
never_make_cover: true
username:
password:
add_genre_when_multi_category: Crossover
slow_down_sleep_time:0.5
add_to_extra_valid_entries:,oneshot,fandoms,description
include_in_oneshot:status
# add oneshot to the tags that are included in epub & calibre.
add_to_include_subject_tags:,oneshot
add_to_custom_columns_settings: 
 fandoms=>#fandom
 description=>#summary
 


And one more thing. If I remove a tag from include_subject_tags, it will not appear on the Calibre tags column. But, does this mean it will not appear on the custom columns?
saluli is offline   Reply With Quote
Old 11-30-2015, 05:53 PM   #773
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,316
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by saluli View Post
Recently all the storys I download from fanfiction.net are coming with the fandom in blank, and for what I remember, this worked before. So, I am assuming I broke something when editing the personal.ini...
The fandoms metadata is specific to AO3. ffnet and most other sites use category instead.

Quote:
Originally Posted by saluli View Post
And one more thing. If I remove a tag from include_subject_tags, it will not appear on the Calibre tags column. But, does this mean it will not appear on the custom columns?
Custom column settings are unrelated to include_subject_tags.
JimmXinu is offline   Reply With Quote
Old 11-30-2015, 09:10 PM   #774
saluli
Connoisseur
saluli began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jul 2015
Location: Curitiba - Brazil
Device: Kindle Paperwhite 3,
Thanks for the info! This is make my Calibre a better place.
saluli is offline   Reply With Quote
Old 11-30-2015, 11:00 PM   #775
ij26
Member
ij26 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by JimmXinu View Post
Rating is already collected. You can modify what's included in calibre's tags with the include_subject_tags ini parameter.
Works; thanks.

Edit: Any particular reason why everything isn't collected by default? Also, is there any way to retrieve the Sex and Gore tags where applicable? I tried "sex", "gore" and "content" as tag subjects, but they don't seem to work; and I notice that Fimfiction's API URL doesn't seem to show them (story tagged Sex and Gore; story not tagged Sex or Gore).
Quote:
Originally Posted by JimmXinu View Post
I'm not interested in writing code to support an archive site for an existing supported site. If someone else wants to write it, I will review and accept it.



FanFicFare already collects prequel and sequel links. Due to lack of series name and allowing multiple sequels, that's as far as I plan to take it. This is a bit like AO3's tags--there's only so much we can reasonably do with the design decisions made by the source site.



That is a deliberate design decision. FanFicFare is meant to be a story downloading tool, not a large scale harvesting tool. Admittedly, the line is fuzzy, but I judge that to be over it.



Outside the scope of this tool. FanFicFare is specifically intended for producing ebook versions of fiction stories for ebook readers and archiving. While there is support for a few original fiction sites, fanfiction is the primary focus--it's right in the name.

FanFicFare is an open source project under the Apache License. If you want to repurpose parts of the code into a more general page scrape -> ebook took, you can. But I'm not interested in making or supporting such a tool.
Fair enough. Fluffy pony stories could sort of technically be considered MLP fanfic, but it's a stretch. What about halo.bungie.org, though?

Last edited by ij26; 12-04-2015 at 02:40 PM. Reason: parenthesis
ij26 is offline   Reply With Quote
Old 12-07-2015, 01:50 AM   #776
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
What have I done wrong with my email-setup? I've tried with labels to be able to separate different fanfiction sites. I use Gmail, and as long as I use INBOX I don't have any trouble, but I would like to have the labels instead.

Code:
calibre, version 2.45.0
ERROR: Unhandled exception: <b>error</b>:SELECT command error: BAD ['Could not parse command']

calibre 2.45 [64bit]  isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: Read MP3 AudioBook metadata && Modify ePub && Count Pages && View Manager && Generate Cover && Reading List && Wiki Reader && Find Duplicates && Quality Check && FanFicFare && User Category && Manage Series && EpubMerge && MultiColumnSearch && Consolidate All Library Metadata
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 456, in get_urls_from_imap_menu
  File "calibre_plugins.fanficfare_plugin.fanficfare.geturls", line 185, in get_urls_from_imap
  File "imaplib.py", line 661, in select
  File "imaplib.py", line 1087, in _simple_command
  File "imaplib.py", line 917, in _command_complete
error: SELECT command error: BAD ['Could not parse command']
Tanjamuse is offline   Reply With Quote
Old 12-07-2015, 11:07 AM   #777
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,316
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Tanjamuse View Post
What have I done wrong with my email-setup? I've tried with labels to be able to separate different fanfiction sites. I use Gmail, and as long as I use INBOX I don't have any trouble, but I would like to have the labels instead.

Code:
calibre, version 2.45.0
ERROR: Unhandled exception: <b>error</b>:SELECT command error: BAD ['Could not parse command']
...
Without setting what your settings are, all I can do is guess from what you have given me.

I speculate that you've entered more than one label, probably in a comma separated list, instead of the one label/folder name that FanFicFare is expecting.

FanFicFare is designed to only read from one label/folder. If you want separate labels for separate sites, I suggest you also apply a common 'FanFic Notice' label to all of them and use it for FanFicFare.
JimmXinu is offline   Reply With Quote
Old 12-07-2015, 11:32 AM   #778
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Here's a screenshot of my settings. I've deleted my mail account and password, if you want another image with that, I'll send you one on a PM.
Attached Thumbnails
Click image for larger version

Name:	Skærmbillede 2015-12-07 17.29.56.png
Views:	524
Size:	44.6 KB
ID:	144393  
Tanjamuse is offline   Reply With Quote
Old 12-07-2015, 02:51 PM   #779
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,316
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Tanjamuse View Post
Here's a screenshot of my settings. I've deleted my mail account and password, if you want another image with that, I'll send you one on a PM.
Turns out this is a bug in Python's imaplib library--it doesn't quote the folder name when there's a space. Not sure why is hasn't been fixed before.

However, because it *does* check for starting/ending " and *not* quote strings that have them, it's safe for us to manually quote it.

New test version (direct link).

- Improvements to basic chapter_title_strip_pattern, add warning comments for same.
- Add dblquotes around folder name on IMAP lookup.
JimmXinu is offline   Reply With Quote
Old 12-07-2015, 02:54 PM   #780
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Thanks, I'll test in a little bit.
Tanjamuse is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 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 PM.


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