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 03-20-2017, 05:47 PM   #1891
Hawf
Junior Member
Hawf began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2017
Device: iPad
Quote:
Originally Posted by JimmXinu View Post
@saluli:

Me neither. If you run Calibre in debug mode (under Calibre's Preferences drop down) and post the log I might be able to help more.
Here is the log file under Debug mode.
Attached Files
File Type: txt tmpgidyob.txt (298.5 KB, 8 views)
Hawf is offline   Reply With Quote
Advert
Old 03-20-2017, 10:06 PM   #1892
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: 2,856
Karma: 587330
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage, Kindle 3g, Aldiko, FBReader
Quote:
Originally Posted by Hawf View Post
Here is the log file under Debug mode.
The log shows that the code went into an infinite loop because it couldn't find what it was looking for on the author's pages.

This is due to a 'skin' issue. Many sites have more than one skin or theme. Sometimes, the changes are enough to prevent FanFicFare from working. FanFicFare only supports the default theme in such cases. (With 140+ sites supported it's just not practical to also support multiple versions of each site.)

@Hawf, change your theme in your account settings on storiesonline.net back to 'Classic' and it should work again.

@davidfor, would you mind taking a look at the loop that starts at adapter_storiesonlinenet.py:196 while you're looking at the metadata code? There has to be a safer way to do that. I'll look into it after you're done if you'd rather not.
JimmXinu is offline   Reply With Quote
Old 03-20-2017, 10:49 PM   #1893
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: 11,451
Karma: 17600947
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD
Quote:
Originally Posted by JimmXinu View Post
@davidfor, would you mind taking a look at the loop that starts at adapter_storiesonlinenet.py:196 while you're looking at the metadata code? There has to be a safer way to do that. I'll look into it after you're done if you'd rather not.
Over the years, I've looked at code in the different applications I have worked on and asked myself, "Who was the idiot who wrote that?" A lot of time I've looked through the version bank to see why it was done like that, I discovered that the idiot was me. Looking at that code, I'm really hoping that it wasn't me, but it probably was.

Yes, I'll fix it.
davidfor is online now   Reply With Quote
Old 03-20-2017, 11:00 PM   #1894
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: 2,856
Karma: 587330
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage, Kindle 3g, Aldiko, FBReader
Quote:
Originally Posted by davidfor View Post
Yes, I'll fix it.
I think all coders have had that experience.

Thanks!
JimmXinu is offline   Reply With Quote
Old Yesterday, 07:26 AM   #1895
edeniz
Connoisseur
edeniz began at the beginning.
 
Posts: 87
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
A quick metadata question:

Spoiler:
Code:
 genre=>(.*)=>\1\,Alternate Universe - Time Travel\,Time Travel&&description=>(timetravel fic)
 genre=>(.*)=>\1\,Alternate Universe - Time Travel\,Time Travel&&description=>(.*)\b[Tt]ime-? ?[Tt]ravel\b(.*)
 genre=>(.*)=>\1\,Alternate Universe - Time Travel\,Time Travel&&description=>\b\[AU/Time Travel\]\b
 genre=>(.*)=>\1\,Alternate Universe - Time Travel\,Time Travel&&description=>([Tt]ime-? ?[Tt]ravel ?\(AU\)?)
 genre=>(.*)=>\1\,Alternate Universe - Time Travel\,Time Travel&&description=>([Tt]ime ?-?[Tt]ravell?s?e?d?r?i?n?g?s?)
 genre=>(.*)=>\1\,Alternate Universe - Time Travel\,Time Travel&&description=>([Tt]ime ?-?[Tt]ravell?s?e?d?r?i?n?g?s?)


None of these seem to be effective for this link: https://www.fanfiction.net/s/10973514/1/[1]

Even though the very same works perfectly well for other stories, for example: https://www.fanfiction.net/s/11587351/1/[1] or https://www.fanfiction.net/s/11519317/1/[1]

What exactly am I overlooking? I mean, I've even stripped the ini from everything else, and online regex testers tell me there is nothing wrong with these regexes, excessive though they may be. Any one of these should work but doesn't.

I've attached debug log.
Attached Files
File Type: txt tmpPCZLVn.txt (40.9 KB, 5 views)
File Type: txt stripped ini.txt (4.5 KB, 2 views)
edeniz is offline   Reply With Quote
Old Yesterday, 12:27 PM   #1896
Tanjamuse
Guru
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: 760
Karma: 5258
Join Date: Jan 2014
Device: Samsung Galaxy Tab 3
Would it be possible to collect the likes from the stories from dark-solace.org

Here's an example: http://dark-solace.org/elysian/viewstory.php?sid=2473
Tanjamuse is offline   Reply With Quote
Old Yesterday, 01:39 PM   #1897
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: 2,856
Karma: 587330
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage, Kindle 3g, Aldiko, FBReader
Quote:
Originally Posted by edeniz View Post
A quick metadata question:

Spoiler:
Code:
 genre=>(.*)=>\1\,Alternate Universe - Time Travel\,Time Travel&&description=>(timetravel fic)
...


None of these seem to be effective for this link: https://www.fanfiction.net/s/10973514/1/[1]
...
"Unto The Breach" doesn't have any genre on ffnet. Therefore, there's nothing to trigger the genre replacement lines.

You can explicitly add those genre to that story like this:
Code:
[https://www.fanfiction.net/s/10973514/1/]
extragenres:Alternate Universe - Time Travel,Time Travel
But at that point, it's easier to just add them manually...

Quote:
Originally Posted by Tanjamuse View Post
Would it be possible to collect the likes from the stories from dark-solace.org

Here's an example: http://dark-solace.org/elysian/viewstory.php?sid=2473
Not really. adapter_darksolaceorg uses the base_efiction code which gets all its data from the print pages. And dark-solace.org doesn't include 'likes' in the print pages.
JimmXinu is offline   Reply With Quote
Old Yesterday, 03:57 PM   #1898
edeniz
Connoisseur
edeniz began at the beginning.
 
Posts: 87
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Quote:
Originally Posted by JimmXinu View Post
"Unto The Breach" doesn't have any genre on ffnet. Therefore, there's nothing to trigger the genre replacement lines.

You can explicitly add those genre to that story like this:
Code:
[https://www.fanfiction.net/s/10973514/1/]
extragenres:Alternate Universe - Time Travel,Time Travel
But at that point, it's easier to just add them manually...
I knew it had to be something obvious! Why did I ever think it could be otherwise? *sigh* Guess I'm not used to a fanfiction.net story having no genre.

You're completely right, at that point manual adding is easier, no contest, and it's what I prefer. I simply wanted to make sure there wasn't something fundamental I'd somehow screwed up, and if I hadn't asked the question would have nagged at me, because of course I can't see the forest for the trees.

Anyway. Thank you kindly, Jim!
edeniz is offline   Reply With Quote
Old Today, 01:10 AM   #1899
baggins41
Member
baggins41 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Dec 2013
Device: Kindle Paperwhite (2nd Gen.)
Breaking change on fimfiction.net

Jimm-

fimfiction.net is now enforcing https for all urls, breaking the current adapter. I tried a simple find/replace on the adapter file (see attached), but stories seem to be taking a much longer amount of time to download than they used to. Much more so than I would have expected from any TLS overhead.

For instance this:
https://www.fimfiction.net/story/325814/
took over 5 minutes to download, where before I would have expected it to take a minute or two.

Is that something to be expected with a change like this, or could something else be broken as a result of the site change?
Attached Files
File Type: py adapter_fimfictionnet.py (17.8 KB, 5 views)
baggins41 is offline   Reply With Quote
Old Today, 11:39 AM   #1900
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: 2,856
Karma: 587330
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage, Kindle 3g, Aldiko, FBReader
New test version posted

2017-03-22
- Change http to https for FimF - thanks baggins41
- Update translations.
- Remove defunct sites portkey.org and psychfic.com
- Bump test version.

Quote:
Originally Posted by baggins41 View Post
fimfiction.net is now enforcing https for all urls, breaking the current adapter.
Thanks for the heads up and the code change.

Quote:
Originally Posted by baggins41 View Post
I tried a simple find/replace on the adapter file (see attached), but stories seem to be taking a much longer amount of time to download than they used to. Much more so than I would have expected from any TLS overhead.
It could be TLS overhead, or it could be the site imposing a deliberate slow down. Or maybe they made other changes at the same time that are using more cycles.
JimmXinu 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] KindleUnpack - The Plugin DiapDealer Plugins 402 03-05-2017 10:31 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] Open With kiwidude Plugins 312 11-10-2016 07:51 AM
[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:05 PM.


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