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 05-02-2018, 02:05 AM   #2701
edeniz
Zealot
edeniz began at the beginning.
 
Posts: 132
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Hi, Jim

I need help finding a workaround or something to two problems I have:

1) When I download a series, the anthology is created pretty well, but an error check with calibre's "edit ebook" gives out the following:

Spoiler:
Code:
WARNING: The file 1/content.opf has a mimetype that does not match its extension****[content.opf]
WARNING: The file 1/toc.ncx has a mimetype that does not match its extension****[content.opf]
WARNING: The file 2/toc.ncx has a mimetype that does not match its extension****[content.opf]
WARNING: The file 2/content.opf has a mimetype that does not match its extension****[content.opf]


Normally I ignore it or just use the auto correct errors option, and it's over and done with. But I have been wondering if this is one of those things for which the solution is in front of my face and I'm just not seeing it. I wonder simply because my ebook readers have a history of refusing to read a book or even crashing down for spectacularly stupid reasons such as a harmless stylesheet entry or a docfile type line it does not like. While I've not seen a problem with those anthology books before, the worry is there. So if there is a workaround, it'd be great.

Example link for a series: https://archiveofourown.org/series/525844
(Sorry, couldn't find a shorter series.)



2) A side effect of fanficfare stripping html tags from the stories, apparently:

When it deletes the tags, it also deletes the content sometimes. Example:

Spoiler:
Code:
</span>
</p><p class="p1">
  <span class="s1">‘Oh, okay.’<span class="Apple-converted-space">  </span>


In the example above, the unnecessary but harmless p class p1 and the span class s1 get kept, but the span class apple-converted-space gets deleted and the space that is inside the tag gets also deleted, and then we get ugly mashed up sentences.

Is there anything to be done about it? I mean, it's great that these useless tags get deleted, but I'd rather the content doesn't, you know?

Example link: https://archiveofourown.org/works/14103627[1]
(There was a better example, with deleted text inside and not just space, but I couldn't find the link anymore.)



I've attached my ini file in case it's relevant.

Thank you kindly for the help.
Attached Files
File Type: txt fff-pini.txt (4.8 KB, 199 views)
edeniz is offline   Reply With Quote
Old 05-02-2018, 06:20 AM   #2702
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
I've added the following to my personal.ini for Stories of Arda, but it doesn't get changed to the html link instead of text. It's both story and author url.

Code:
custom_columns_settings:
    authorHTML=>#author_url
    titleHTML=>#story_url
This is what it is:

and this is what I want:

Code:
Katzilla
(with the link hidden behind).

And here's a story-link:

http://www.storiesofarda.com/chapter...w.asp?SID=7581

This is what I have:

Code:
http://www.storiesofarda.com/chapterlistview.asp?SID=7581
and this is what I want:

Code:
A Red Sun Rises
(with the link hidden behind).
Tanjamuse is offline   Reply With Quote
Advert
Old 05-02-2018, 12:35 PM   #2703
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,981
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@edeniz -

Re: Anthologies: Those files are there as part of EpubMerge's 'UnMerge' feature, which is how FFF makes Anthologies that it can update. There is currently no way in FFF to remove them. If you can prove that the extra files cause a problem, I will look into making it optional. One option now is to not use the Anthology feature in FFF and instead download individual stories and then manually use EpubMerge with 'Keep UnMerge Data' turned off.

Re: Stripping tags: Removing whitespace only containing tags that aren't 'p','td','th' is functioning as designed. If you want, you adjust the value of keep_empty_tags to add more tags to keep when empty.

I'm going to need to see an example of actual text being removed accidentally before I can troubleshoot that. Plus, you have replace_br_with_p set true, which introduces a bunch of heuristic tag editing. I would guess that you found an example of poor input HTML being handled badly.
JimmXinu is offline   Reply With Quote
Old 05-02-2018, 12:47 PM   #2704
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,981
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@Tanjamuse -

Putting titleHTML and authorHTML into custom columns works for me as long as the column type is Long Text with it's "Interpret this column as" set to HTML.
JimmXinu is offline   Reply With Quote
Old 05-02-2018, 03:03 PM   #2705
edeniz
Zealot
edeniz began at the beginning.
 
Posts: 132
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Quote:
Originally Posted by JimmXinu View Post
@edeniz -

Re: Anthologies: Those files are there as part of EpubMerge's 'UnMerge' feature, which is how FFF makes Anthologies that it can update. There is currently no way in FFF to remove them. If you can prove that the extra files cause a problem, I will look into making it optional. One option now is to not use the Anthology feature in FFF and instead download individual stories and then manually use EpubMerge with 'Keep UnMerge Data' turned off.

Re: Stripping tags: Removing whitespace only containing tags that aren't 'p','td','th' is functioning as designed. If you want, you adjust the value of keep_empty_tags to add more tags to keep when empty.

I'm going to need to see an example of actual text being removed accidentally before I can troubleshoot that. Plus, you have replace_br_with_p set true, which introduces a bunch of heuristic tag editing. I would guess that you found an example of poor input HTML being handled badly.

Thank you kindly, Jim! This reply helps a lot actually.

My main issue was that there might have been something I was doing wrong or overlooking the obvious or something. I have a long history of doing just so especially with fanficfare, so this time I thought I'd head it off at the beginning.

I don't have a link to a story with the text removal at the moment (it was months ago and I don't remember now which story it was), but I'll report it if it happens again, thank you.

And yeah, in the cases I mentioned, with the spaces enclosed in tags, it was mainly due to bad uploading on the part of the authors in question, so there is that to consider as well, you're right.
edeniz is offline   Reply With Quote
Advert
Old 05-02-2018, 07:09 PM   #2706
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,981
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2018-05-02
- Fix some metadata collection in adapter_webnovelcom. (#299)
- adapter_webnovelcom - use_pagecache - mostly for debugging.
JimmXinu is offline   Reply With Quote
Old 05-03-2018, 11:41 AM   #2707
hairymuggle
Junior Member
hairymuggle began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2018
Device: Kindle Paperwhite 3
Hi Jimm!

Thanks so much for the updated version.

I've been meaning to ask - there seems to be an ongoing problem getting stories from whofic.com. Whenever I enter a URL (e.g: https://www.whofic.com/viewstory.php?sid=XXXX) I get an error message which says "No valid story URLs entered", even though the link is in the correct format (I hope).

It's been a problem for a few months now, though I managed to download a few stores from there in January. I've tried to download using the same URLs which worked before to no avail.

I have the latest Calibre and FanFicFare versions.

I'd appreciate any advice you can give me; Thanks!
hairymuggle is offline   Reply With Quote
Old 05-03-2018, 12:43 PM   #2708
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,981
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by hairymuggle View Post
I've been meaning to ask - there seems to be an ongoing problem getting stories from whofic.com. Whenever I enter a URL (e.g: https://www.whofic.com/viewstory.php?sid=XXXX) I get an error message which says "No valid story URLs entered", even though the link is in the correct format (I hope).
Glad you like it.

That issue is the site now using https vs http. The next test version (probably later today) will have a fix for it.
JimmXinu is offline   Reply With Quote
Old 05-03-2018, 01:14 PM   #2709
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,981
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2018-05-03
- Change adapter_whoficcom to https.
- Add rating and sitetags to adapter_webnovelcom.
JimmXinu is offline   Reply With Quote
Old 05-04-2018, 08:32 AM   #2710
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
Quote:
Originally Posted by JimmXinu View Post
@Tanjamuse -

Putting titleHTML and authorHTML into custom columns works for me as long as the column type is Long Text with it's "Interpret this column as" set to HTML.
I've looked at the columns in that library and they are set to html (see attached screenshot).

Also, can anyone see if there's an error in the coding on this site from AO3?

It only shows 19 stories instead of the 20 it's supposed to.

https://archiveofourown.org/tags/Assassin's%20Creed%20-%20All%20Media%20Types/works?commit=Sort+and+Filter&page=49&utf8=%E2%9C%9 3&work_search%5Bcomplete%5D=0&work_search%5Blangua ge_id%5D=&work_search%5Bother_tag_names%5D=&work_s earch%5Bquery%5D=restricted%3Afalse&work_search%5B sort_column%5D=revised_at
Attached Thumbnails
Click image for larger version

Name:	Skærmbillede 2018-05-04 14.29.39.png
Views:	195
Size:	28.7 KB
ID:	163830  
Tanjamuse is offline   Reply With Quote
Old 05-04-2018, 10:03 AM   #2711
hairymuggle
Junior Member
hairymuggle began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2018
Device: Kindle Paperwhite 3
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2018-05-03
- Change adapter_whoficcom to https.
- Add rating and sitetags to adapter_webnovelcom.
Brilliant! The update worked great! Thanks so much for the quick help!
hairymuggle is offline   Reply With Quote
Old 05-04-2018, 11:07 AM   #2712
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,981
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
I've looked at the columns in that library and they are set to html (see attached screenshot).
I don't know what's going on then. As far as I can tell, what I see is what you asked for.

Quote:
Originally Posted by Tanjamuse View Post
Also, can anyone see if there's an error in the coding on this site from AO3?

It only shows 19 stories instead of the 20 it's supposed to.

long url
Does it matter? It's a bit off-topic for this thread.
JimmXinu is offline   Reply With Quote
Old 05-04-2018, 11:08 AM   #2713
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
Sorry, I was just wondering if anyone could tell me if it was my fault or the coding for the site in general.
Tanjamuse is offline   Reply With Quote
Old 05-04-2018, 01:25 PM   #2714
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,981
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Defunct Sites

Defunct Sites Roundup

I was checking all the sites and found only one that needed fixing this time (dates for gluttonyfiction.com), but there are a number that aren't working.

Sites broken or off line:
  • dramione.org - Domain is there, but no site. Was also broken in Nov 2017
  • fanfiction.mugglenet.com - mugglenet.com still there, but fanfiction.mugglenet.com not resolving
  • fanfiction.tenhawkpresents.com - No Domain found
  • imrightbehindyou.com - Generic "HostGator" page
  • national-library.net - reports "I cannot connect to the database."
  • nocturnal-light.net - Domain parked
  • tolkienfanfiction.com - Domain is there, but no software running
  • writing.whimsicalwanderings.net - No Domain found
  • www.area52hkh.net - efiction appears offline. Was also broken in Nov 2017
  • www.destinysgateway.com - Generic "HostGator" page
  • www.fiction.thebrokenworld.org - reports "This Account has been suspended."

I'm less quick to remove defunct sites than I once was after having some come back, but clearly they don't work right now. If you want any of them back, you'll need to somehow contact the admin for that particular site.

Definitely removing:
  • www.thealphagate.com - now redirects to AO3
  • www.harrypotterfanfiction.com - now redirects to a page saying the site closed April 28 2018
JimmXinu is offline   Reply With Quote
Old 05-06-2018, 07:20 AM   #2715
thoai69
Junior Member
thoai69 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2018
Device: Kindle PPW 2
Hi, I've just got this space problem, for example "Sorry,Iwasjustwonderingifanyonecould..."
What can I do??
thoai69 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 04:21 PM.


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