Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-19-2017, 03:36 AM   #2251
Epoch615
Junior Member
Epoch615 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2017
Device: Kindle Voyage
FFF Broken for Fimfic


I downloaded the test but FFF is still broken for me when updating to .
The error I'm getting is:
Status:Bad
Title:Unknown
Author:Unknown
'NoneType' object has no attribute 'find'
URL:https://www.fimfiction.net/story/298834/ (same error for every story so url doesn't really matter I suppose)

Is there a way for me to fix this, should I roll back to an older Calibre version, or do I just need to wait for an update? I feel like there should be something I could do to fix this in the settings but I just can't seem to find anything and looking at the zip contents make me feel like the worlds biggest idiot.
Epoch615 is offline   Reply With Quote
Advert
Old 06-19-2017, 04:51 AM   #2252
PandathePanda
a toy panda
PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.
 
PandathePanda's Avatar
 
Posts: 2,159
Karma: 17333728
Join Date: Mar 2014
Location: Onboard the Queen Anne's Revenge
Device: Various Android dvices
Quote:
Originally Posted by Epoch615 View Post

I downloaded the test but FFF is still broken for me when updating to .
The error I'm getting is:
Status:Bad
Title:Unknown
Author:Unknown
'NoneType' object has no attribute 'find'
URL:https://www.fimfiction.net/story/298834/ (same error for every story so url doesn't really matter I suppose)

Is there a way for me to fix this, should I roll back to an older Calibre version, or do I just need to wait for an update? I feel like there should be something I could do to fix this in the settings but I just can't seem to find anything and looking at the zip contents make me feel like the worlds biggest idiot.
Just tried it here and it works. used Calibre 3 and the test release from 2017-06-18 (on linux)

Quote:
Fallout Equestria: Homelands, Somber, Download epub completed, 14 chapters., https://www.fimfiction.net/story/298834/
PandathePanda is offline   Reply With Quote
Old 06-19-2017, 05:01 AM   #2253
Epoch615
Junior Member
Epoch615 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2017
Device: Kindle Voyage
I got it to work finally. One of my Firefox addons was eating it. Chrome fixed it. So I was right, it was my fault.
Epoch615 is offline   Reply With Quote
Old 06-19-2017, 02:35 PM   #2254
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: 3,081
Karma: 587516
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
FYI, the following sites all appear to have gone away:
  • occlumency.sycophanthex.com
  • lumos.sycophanthex.com
  • erosnsappho.sycophanthex.com
  • chaos.sycophanthex.com
  • ashwinder.sycophanthex.com
  • www.deandamage.com
  • pommedesang.com
  • dramione.org
  • www.indeath.net
(indeath.net says it's moved, but the new site does not appear to have any fanfic forums.)

If you like any of these sites and know how to contact the owner, you might want to check with them.

I won't remove support for them in the release I plan to make this week, but they will be removed in the release after that if still down.
JimmXinu is offline   Reply With Quote
Old 06-19-2017, 04:42 PM   #2255
Atherton25
Connoisseur
Atherton25 has learned how to buy an e-book online
 
Posts: 54
Karma: 94
Join Date: May 2016
Device: Kindle Paperwhite
Quote:
Originally Posted by JimmXinu View Post
FYI, the following sites all appear to have gone away:
And there lies the reason for archiving stories that you might be interested in.
Atherton25 is offline   Reply With Quote
Advert
Old 06-20-2017, 03:45 PM   #2256
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: 3,081
Karma: 587516
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
New test version posted

2017-06-20
- Fix for webnovel.com site change, thanks Etana!
JimmXinu is offline   Reply With Quote
Old 06-21-2017, 08:49 PM   #2257
spearstuff
Junior Member
spearstuff began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2017
Device: Ipad
Edit: Fixed it! I don't know what was the cause. But I just cleared my cookies in Chrome and did all the stuff below and it works now

I am trying to download a story from this website https://www.fimfiction.net/story/377...lights-problem

But when I copy that web address and try downloading nothing downloads and I get this error report http://imgur.com/QSEWRSe

I just installed the newest version of Calibre today on my Windows PC. Is there something wrong with the program or is it my computer?


Edit: I guess I'm having the same problem as Epoch615 above. But I don't have Firefox add ons, since I use the Chrome browser, so I wonder what the heck could be interfering with this program. I added Calibre to my allowable programs in my firewall. I even installed the test version of fanficfare in the front page of this thread. I really want this to work. I don't know what I should do.

Last edited by spearstuff; 06-21-2017 at 09:43 PM.
spearstuff is offline   Reply With Quote
Old 06-22-2017, 03:10 AM   #2258
iakovl
Connoisseur
iakovl began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Dec 2009
Device: none
fimfiction error again, using latest test build for FFF
only in 2 fics i tried to update out of 16 so it's not a general error

Quote:
Status : Bad
Title : Unknown
Author : Unknown
Comment :'NoneType' object has no attribute 'group'
URL : https://www.fimfiction.net/story/332660/
debug
Code:
calibre Debug log
calibre 3.0 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.15063-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.15063')
Python 2.7.12+
Windows: ('10', '10.0.15063', 'SP0', u'Multiprocessor Free')
Successfully initialized third party plugins: FanFicFare (2, 12, 14) && Reading List (1, 6, 6) && Generate Cover (1, 5, 21) && Count Pages (1, 8, 0)
calibre 3.0 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.15063-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.15063')
Python 2.7.12+
Windows: ('10', '10.0.15063', 'SP0', u'Multiprocessor Free')
Successfully initialized third party plugins: FanFicFare (2, 12, 14) && Reading List (1, 6, 6) && Generate Cover (1, 5, 21) && Count Pages (1, 8, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 120.0 x 120.0
physicalDpi: 54.795505618 x 54.864
Using calibre Qt style: True
Starting up...
FFF: DEBUG: 2017-06-22 10:07:29,026: calibre_plugins.fanficfare_plugin.fff_plugin(207): Plugin FanFicFare macmenuhack file_path:C:\Users\ian\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
Started up in 11.45 seconds with 1843 books
FFF: DEBUG: 2017-06-22 10:07:43,073: calibre_plugins.fanficfare_plugin.fff_plugin(954): FanFicFare v2.12.14
FFF: DEBUG: 2017-06-22 10:07:43,142: calibre_plugins.fanficfare_plugin.fff_plugin(1044): url:https://www.fimfiction.net/story/332660/
FFF: DEBUG: 2017-06-22 10:07:43,174: calibre_plugins.fanficfare_plugin.fanficfare.configurable(1014): #####################################
pagecache(GET) MISS: https://www.fimfiction.net/story/332660/
FFF: ERROR: 2017-06-22 10:07:45,792: calibre_plugins.fanficfare_plugin.dialogs(680): Exception: {u'series': u'', u'good': False, u'title': u'Unknown', u'showerror': True, u'comment': u"'NoneType' object has no attribute 'group'", u'url': u'https://www.fimfiction.net/story/332660/', u'site': 'www.fimfiction.net', u'end': None, u'added': False, u'comments': u'', u'listorder': 0, u'author_sort': [u'Unknown'], u'pubdate': None, u'publisher': None, u'calibre_id': None, u'author': [u'Unknown'], u'begin': None}:'NoneType' object has no attribute 'group'
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.dialogs", line 668, in do_loop
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 1134, in prep_download_loop
  File "calibre_plugins.fanficfare_plugin.fanficfare.adapters.base_adapter", line 197, in getStoryMetadataOnly
  File "calibre_plugins.fanficfare_plugin.fanficfare.adapters.adapter_fimfictionnet", line 316, in doExtractChapterUrlsAndMetadata
  File "calibre_plugins.fanficfare_plugin.fanficfare.adapters.adapter_fimfictionnet", line 329, in date_span_tag_to_date
AttributeError: 'NoneType' object has no attribute 'group'
iakovl is offline   Reply With Quote
Old 06-22-2017, 03:48 AM   #2259
FaceDeer
Connoisseur
FaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enough
 
Posts: 81
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
I've figured out what's causing the Fimfiction error. I made a silly oversight in an obscure regex that only gets called as a fallback when Fimfiction fails to generate a full set of data for some reason.

Basically, the adapter tries to read the author's "last logged in" date, which is normally present in the page in a nice Unix-formatted timestamp. But occasionally for reasons I've not been able to determine that timestamp is missing from the page's source. In that case the adapter falls back to trying to parse the human-readable date string instead. I wrote a regex that, among other things, turns the date ordinal "21st", "22nd", "23rd", "24th", etc. into just the number... but I forgot to include the "st" case.

So, sometimes Fimfiction fails to include a Unix timestamp for the "last logged in" date, and when that date happens to be the "1st", "21st" or "31st" of some month the fallback regex fails to parse it.

Obscure edge cases are such fun. I tested on literally thousands of Fimfiction test URLs without encountering this. I guess now that it's the 21st of June it suddenly became more common.

Last edited by FaceDeer; 06-22-2017 at 03:58 AM.
FaceDeer is offline   Reply With Quote
Old 06-22-2017, 03:58 AM   #2260
iakovl
Connoisseur
iakovl began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Dec 2009
Device: none
Quote:
Originally Posted by FaceDeer View Post
Obscure edge cases are such fun. I tested on literally thousands of Fimfiction test URLs without encountering this. I guess now that it's the 21st of June it suddenly became more common.
first we had Y2K bug, now we have 21ST bug
iakovl is offline   Reply With Quote
Old 06-22-2017, 07:50 AM   #2261
edeniz
Connoisseur
edeniz began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Hi!

Just a quick question about this new keyword_filelist option - or rather, output_css_filelist:

I wanted to ask whether it only works for epub, at first, but then I realised that it seems to rather pick and choose which elements it enforces in my html file. Which makes me wonder a bit. I've attached the relevant documents for comparison. One is the html file with the out_put_css_filelist, the other without it. And the ini I've been using it with. It boggles my mind just why it wants to ignore the margin I've set for the text body, for example.

Am I doing something wrong, overlooking the obvious-to-all-but-me, or is it a case of the filelist element not being meant for any but epub in the first place?

Thank you kindly
Attached Files
File Type: txt personal-ini2.txt (1.7 KB, 17 views)
File Type: zip how it looks like.zip (11.9 KB, 16 views)
File Type: zip how_it_should_look_like.zip (11.9 KB, 17 views)
edeniz is offline   Reply With Quote
Old 06-22-2017, 11:11 AM   #2262
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: 3,081
Karma: 587516
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
Quote:
Originally Posted by edeniz View Post
Just a quick question about this new keyword_filelist option - or rather, output_css_filelist:
...
Am I doing something wrong, overlooking the obvious-to-all-but-me, or is it a case of the filelist element not being meant for any but epub in the first place?
_filelist can be used with any output format. It's part of the INI/configuration system.

output_css_filelist includes the contents as-is--_filelist files are not additional INI files. And output_css is the keyword for using in INI files.

What it looks like is happening is that you kept the output_css keyword in your CSS file and that's messing up everything after it. The extra space beginning each line shouldn't matter, but isn't needed in the CSS file. (Kudos on change the %%s to % though--that is needed.)

So remove output_css: from the CSS file and it should be fine.
JimmXinu is offline   Reply With Quote
Old 06-22-2017, 11:17 AM   #2263
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: 3,081
Karma: 587516
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
New test version posted

2017-06-22
- Fix for finestories.com using Modern theme rather than Classic, thanks, davidfor!
- Fix for adapter_fimfictionnet -- missed the "st" ordinal case when parsing dates, thanks FaceDeer!

FYI, unless something big comes up quickly, I'm going to release this version later today.
JimmXinu is offline   Reply With Quote
Old 06-22-2017, 04:32 PM   #2264
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: 3,081
Karma: 587516
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
New Release Posted

Version 2.13.0 - 22 Jun 2017

- Update translations.
- Fix for finestories.com using Modern theme rather than Classic, thanks, davidfor!
- Fix for adapter_fimfictionnet -- missed the "st" ordinal case when parsing dates, thanks FaceDeer!
- Fix for webnovel.com site change, thanks Etana!
- Fix for storiesonline.net site change, thanks davidfor!
- Allow multiple range URLs (url[1-5]) for same story in one download.
- Change adapter_fimfictionnet to use makeDate for non-USEnglish locales.
- Add keep_prequel_in_description option for fimfiction.net.
- Fix base_xenforoforum_adapter for QQ--it doesn't have threadmark categories or reader mode.
- Fix fimfiction datePublished (Merge pull request #190 from FaceDeer/master)
- http->https for adapter_midnightwhispers
- Update adapter_webnovelcom for site changes. Thanks, Ser4nb2LUY6e
- Tweak skip_threadmarks_categories comments in INI.
- Special error msg for storiesonline.net about Listing Theme.
- Change adapter_fanfiktionde to https.
- Extend base_xenforoforum_adapter Reader Mode to other Threadmark Categories.
- Correct an error log message.
- Additional updates for fimfiction.net for changes, thanks FaceDeer!
JimmXinu is offline   Reply With Quote
Old 06-23-2017, 12:41 AM   #2265
edeniz
Connoisseur
edeniz began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Quote:
Originally Posted by JimmXinu View Post
_filelist can be used with any output format. It's part of the INI/configuration system.

output_css_filelist includes the contents as-is--_filelist files are not additional INI files. And output_css is the keyword for using in INI files.

What it looks like is happening is that you kept the output_css keyword in your CSS file and that's messing up everything after it. The extra space beginning each line shouldn't matter, but isn't needed in the CSS file. (Kudos on change the %%s to % though--that is needed.)

So remove output_css: from the CSS file and it should be fine.
I knew it'd be something obvious that I'm just not seeing. For some reason I kept thinking/seeing a "#" in front of that "output_css" in my css file.

edeniz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 328 08-20-2017 11:34 PM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 403 07-29-2017 01:19 PM
[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 08:54 PM.


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