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 10-30-2016, 05:02 PM   #1591
scarlettruin
Connoisseur
scarlettruin began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2014
Location: UK
Device: Samsung 10 Inch Tablet 2016 & Samsung S10+
I think the answer to this one is going to be no, but I figured I'd ask anyway. Would it be possible to add the Sylum Manor Archive? It is password protected, but the format is the same as ksarchive.com
scarlettruin is offline   Reply With Quote
Old 10-31-2016, 11:12 AM   #1592
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by scarlettruin View Post
I think the answer to this one is going to be no, but I figured I'd ask anyway. Would it be possible to add the Sylum Manor Archive? It is password protected, but the format is the same as ksarchive.com
It might be, but not if you don't even include the URL...

Googling for "Sylum Manor Archive", the first link isn't a fanfic site, and I don't obviously see one in the first page of results.
JimmXinu is offline   Reply With Quote
Advert
Old 10-31-2016, 12:55 PM   #1593
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
Even though this site is on the list, it can't find the stories when I insert an URL.

http://www.storiesofarda.com/index.asp?pagenum=200

I get the following error:

PHP Code:
No Valid Story URLs found on the given page
Tanjamuse is offline   Reply With Quote
Old 10-31-2016, 01:44 PM   #1594
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
Even though this site is on the list, it can't find the stories when I insert an URL.

http://www.storiesofarda.com/index.asp?pagenum=200

I get the following error:

PHP Code:
No Valid Story URLs found on the given page
I have a fix for this, but I have something else I'm also looking into. I plan to have a new test version later today.
JimmXinu is offline   Reply With Quote
Old 10-31-2016, 01:49 PM   #1595
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.
Tanjamuse is offline   Reply With Quote
Advert
Old 10-31-2016, 05:20 PM   #1596
scarlettruin
Connoisseur
scarlettruin began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2014
Location: UK
Device: Samsung 10 Inch Tablet 2016 & Samsung S10+
Quote:
Originally Posted by JimmXinu View Post
It might be, but not if you don't even include the URL...

Googling for "Sylum Manor Archive", the first link isn't a fanfic site, and I don't obviously see one in the first page of results.
Sorry - I must have deleted that part of the message, I was in a bit of a hurry when I wrote it.

This is the main website - http://www.sylumclan.com/. That is password protected, and then the link to the archive once you have logged in is http://www.sylumclan.com/SylumManor/...hive/index.php
scarlettruin is offline   Reply With Quote
Old 10-31-2016, 08:50 PM   #1597
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted (direct post)

2016-10-31
- Fix to handle incorrect HTML better in Get URLs from Page.

(FYI, I did try updating the embedded BeautifulSoup and html5lib--not only did they not fix the problem, they caused other problems. So no updates.)

Happy Halloween!

Quote:
Originally Posted by Tanjamuse View Post
Even though this site is on the list, it can't find the stories when I insert an URL.

http://www.storiesofarda.com/index.asp?pagenum=200

I get the following error:

PHP Code:
No Valid Story URLs found on the given page
JimmXinu is offline   Reply With Quote
Old 10-31-2016, 09:02 PM   #1598
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by scarlettruin View Post
I think the answer to this one is going to be no, but I figured I'd ask anyway. Would it be possible to add the Sylum Manor Archive? It is password protected, but the format is the same as ksarchive.com
Quote:
Originally Posted by scarlettruin View Post
This is the main website - http://www.sylumclan.com/. That is password protected, and then the link to the archive once you have logged in is http://www.sylumclan.com/SylumManor/...hive/index.php
The site is 'password protected' by an HTTP auth user/pass instead of the usual eFiction user/pass.

So you were right the first time--the answer is 'no' because that alone means it would need extra new code.

(And the site doesn't even tell you what it's for... )
JimmXinu is offline   Reply With Quote
Old 11-01-2016, 06:43 AM   #1599
scarlettruin
Connoisseur
scarlettruin began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2014
Location: UK
Device: Samsung 10 Inch Tablet 2016 & Samsung S10+
Quote:
Originally Posted by JimmXinu View Post
The site is 'password protected' by an HTTP auth user/pass instead of the usual eFiction user/pass.

So you were right the first time--the answer is 'no' because that alone means it would need extra new code.

(And the site doesn't even tell you what it's for... )
Okay, thanks for letting me know - figured it didn't hurt to ask! I was being a bit greedy - your plugin already does so much!
scarlettruin is offline   Reply With Quote
Old 11-02-2016, 06:53 AM   #1600
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Hi. Recently you fixed the growing white space problem at the beginning and end of chapters when updating. This is great. The only problem I have is that it removes the line I DO want there.

I have an empty line at the top of the page, between the closing title tag (not title, actually but the </h3> tag) and the first <div....> tag. I have that there for clarity when editing, but it keeps getting removed now. I can do a general S&R to replace it, as I was doing to remove the excess before, but I figured I'd check see if anything can be tweaked on your end first -- or if you can suggest a tweak I can add to personal.ini to take care of it.

Not a big deal, but can't hurt to ask, the worst you can say is no!
MerlinMama is offline   Reply With Quote
Old 11-02-2016, 11:11 AM   #1601
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@MerlinMama - I don't see that using the default settings.

But I do see it using custom chapter_start settings, so I assume that you are using those.

The INI config parser strips off trailing whitespace automatically whether we want it to or not. I've worked around it for a few other parameters by explicitly replacing \s with space once it's in my code. However, I can't do that for all parameters because it can be a legitimate part of a path or a regex.

I'll think about it a bit, but I don't expect to have any brainstorms. In the meantime, you could add something to the end of chapter_start to separate the title from the chapter text.
Code:
[epub]

chapter_start:<?xml version="1.0" encoding="UTF-8"?>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${chapter}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="chapterurl" content="${url}"></meta>
 <meta name="chapterorigtitle" content="${origchapter}"></meta>
 <meta name="chaptertoctitle" content="${tocchapter}"></meta>
 <meta name="chaptertitle" content="${chapter}"></meta>
 </head>
 <body>
 <h3>${chapter}</h3>
 &nbsp;

# (Leading whitespace is left alone, so chapter_end is easy.)
chapter_end:
 </body>
 </html>
JimmXinu is offline   Reply With Quote
Old 11-02-2016, 11:28 AM   #1602
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by JimmXinu View Post
I'll think about it a bit, but I don't expect to have any brainstorms. In the meantime, you could add something to the end of chapter_start to separate the title from the chapter text.
Oh, yes, I completely forgot I am using custom chapter-start settings. I'll follow your suggested modif. and I'm sure that'll do me fine!

Edited: I added %(newline)s after my </h3>, since I already had that defined for my custom title_page settings. I tested it out and it works like a charm for me. Thanks for reminding me and sorry for bothering you!

Last edited by MerlinMama; 11-02-2016 at 11:42 AM. Reason: Found solution
MerlinMama is offline   Reply With Quote
Old 11-03-2016, 11:40 AM   #1603
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by MerlinMama View Post
Edited: I added %(newline)s after my </h3>, since I already had that defined for my custom title_page settings. I tested it out and it works like a charm for me. Thanks for reminding me and sorry for bothering you!
I'm glad you figured that out--because I'd completely forgotten about the %(newline)s trick!
JimmXinu is offline   Reply With Quote
Old 11-04-2016, 09:45 PM   #1604
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted (direct link)

2016-11-04
- Add strip_text_links INI param to allowed list for asexstories.com.
- Change comments sanitization for calibre to be less draconic.
- Fix author fetch for post URL base_xenforoforum.
- Don't use 'uparrow' quote links as chapter links in base_xenforoforum.
- Bump test version.
JimmXinu is offline   Reply With Quote
Old 11-06-2016, 09:03 PM   #1605
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,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version (direct link)

2016-11-06
- Adding remove_spoilers and legend_spoilers features and css example for spoilers for base_xenforoforum.
- Bump test version.

The way spoilers from the base_xenforoforum sites come out in ebook was bugging me. And rather than come up with one fix, I made three.

The CSS way is the least intrusive; legend_spoilers changes the HTML and uses a nice looking trick I first saw in Who Needs Enemies; remove_spoilers removes them outright.

And using story URL INI sections, you can change the settings for individual stories.

Code:
[base_xenforoforum]
...
## base_xenforoforum sites sometimes have 'spoiler' blocks in
## posts. When viewed in a browser, the block is hidden until a button
## is clicked.  eBook viewers can't handle that and the javascript is
## disabled.  The remove_spoilers option, if uncommented, will remove
## spoiler blocks entirely.
#remove_spoilers:true

## This option if uncommented, will put a box around the spoiler
## blocks with the original spoiler button text as a label using
## fieldset and legend HTML tags.  For a simple box, see the
## add_to_output_css example for [base_xenforoforum:epub] below.
#legend_spoilers:true

[base_xenforoforum:epub]
## See remove_spoilers above for more about 'spoilers'.  This example
## shows how to put a simple line around spoiler blocks.  Uncomment
## all three lines, keep the leading space before .bbCodeSpoilerContainer.
#add_to_keep_html_attrs:,style
#add_to_output_css:
# .bbCodeSpoilerContainer { border: 1px solid black; padding: 2px; }
JimmXinu 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 10:24 AM.


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