Register Guidelines E-Books Today's Posts Search

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 02-12-2015, 12:41 PM   #3721
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Email Fetch Test Version

Here's another test version that improves on the Email story url retrieval.

This version will save your email password if you want, or save it only for a session, or not save it at all.

I've also added some verbiage to explain the risk a bit more. I'm open to suggestions on wording.

Last edited by JimmXinu; 02-15-2015 at 10:26 AM. Reason: Remove obsolete test versions - replaced by newer test or released version.
JimmXinu is offline  
Old 02-13-2015, 01:35 PM   #3722
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
For the tech-savvy guys: In case you find yourself in the situation of suddenly wanting to follow all your stories on fanfiction.net, you can export the URLs via the FFDL icon in Calibre and then use this script. You need Python 3, the selenium module and the Mozilla Firefox browser (although with slight modifications other browsers are supported of course too). Then just call the script with a path to a file containing the exported list of URLs. Again, this is for the tech-savvy people, and I know this makes me seem like a douche, but I really don't want to be responsible for giving support for this throw-away script. Good luck!

@Jimm: I think it would be nice if you could extend the default action settings in the "GUI Options" menu of the configuration dialogue. I would like to be able to get FFDL to check the emails by simply clicking on it, instead of defaulting to the add- or update-dialogue.

EDIT: Also the current code will raise an UnicodeDecodeError if the message isn't using the UTF-8 encoding (since that is what Python in Calibre defaults to if you just call unicode, I think). You somehow need to figure out the encoding on a per-email basis and decode to Unicode accordingly. Maybe this helps, but I never really worked with imaplib in Python myself.

Last edited by cryzed; 02-13-2015 at 05:46 PM.
cryzed is offline  
Old 02-14-2015, 08:44 PM   #3723
mehetabelo
e-Bibliophile
mehetabelo began at the beginning.
 
mehetabelo's Avatar
 
Posts: 60
Karma: 10
Join Date: Jun 2009
Location: California
Device: Paperwhite 1-3, Kobo AuraHD, Boox Afterglow2
Since cryzed remarked on it, I figured I'd note that I noticed the unicode error too, but it was on some really, really old fanfiction stuff that I had wanted to get a bulk list for, then clean it up and get the stories I had on my list but hadn't read in a really long time. Mostly it was annoying because when it caused the error everything that was being downloaded was 'lost' and I had to start again, and it had already marked anything before the error as read.

When it didn't work I just put it off, since there was no real need to support it for ff.net stuff that old. However, now that I think about it, there may be other site update emails that will cause the problem. If it matters, for fanfiction.net stuff is pre mid-Sept 2006 and was basically nailing errors on things like: ' or " or * along with some of the odder characters (IE: Æ) when they were in the text.

Edit:Also, Cryzed, thanks for the code. I'm going to figure it out and probably use it. At one point there was a simple html that you could insert the story ID into and use that as a direct link, as long as you were logged into ff.net. I know I have seen it mentioned before. I don't know what it is though. But it will be damn useful to be able to do it in bulk again when I get time to sit down for a while to use your code.

Last edited by mehetabelo; 02-14-2015 at 08:48 PM.
mehetabelo is offline  
Old 02-14-2015, 08:54 PM   #3724
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
I'm glad it's useful to someone besides me, and yes there's probably some easier way to do it but this is what came to mind first.

Again, using it should be relatively easy: Install Python 3 (make sure to enable "Add python.exe to search path"), execute "pip install selenium" on the command-line and then run the script with "python path-to-script.py path-to-urls.txt". A Firefox instance should open and automatically navigate to the fanfiction.net login page, prompting you to login. Afterwards simply press enter when the command-prompt is focused and it should start doing its thing while you can just minimize both, the Firefox instance and the command-prompt.
cryzed is offline  
Old 02-14-2015, 10:58 PM   #3725
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
FYI, I don't look at the thread except when I get notices about new posts. So when you edit an old post, odds are I'm not going to see it. Like happened this time until mehetabelo replied.

I need to see the unicode error, or preferably have an email that causes it, before I can do anything about it.

Quote:
@Jimm: I think it would be nice if you could extend the default action settings in the "GUI Options" menu of the configuration dialogue. I would like to be able to get FFDL to check the emails by simply clicking on it, instead of defaulting to the add- or update-dialogue.
I use hot-keys for Add, Update, Config, Get from Email, etc. I suggest trying that.
Attached Thumbnails
Click image for larger version

Name:	hotkeys.png
Views:	299
Size:	31.1 KB
ID:	134842  
JimmXinu is offline  
Old 02-15-2015, 07:09 AM   #3726
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
Thanks for the hotkey tip, I suppose that is what I will be doing. Regarding the traceback: I didn't have the error myself, but I am almost entirely sure it happens in line 218 in fanficdownloader.geturls, when calling get_urls_from_text and then finally in line 125 where you use unicode(). I remember seeing "UnicodeDecodeError 0x4e is not a valid continuation byte" or some such (I gave support to someone via TeamViewer) -- clear signs that the encoding didn't match (UTF-8). According to the docs get_payload returns:

Quote:
[...] If some other encoding is used, or Content-Transfer-Encoding header is missing, or if the payload has bogus base64 data, the payload is returned as-is (undecoded).
So that might be what's happening. The e-mail that caused the error for my friend was an official (german) email by Google IIRC. But yeah, let's wait for more complete tracebacks (and possibly entire e-mails) for better debugging.
cryzed is offline  
Old 02-15-2015, 08:00 AM   #3727
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
Can I create a custom column that picks up the kudos and hits from AO3?

Thanks
Tanjamuse is offline  
Old 02-15-2015, 10:25 AM   #3728
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by cryzed View Post
...
I didn't have the error myself, but I am almost entirely sure it happens in line 218 in fanficdownloader.geturls, when calling get_urls_from_text and then finally in line 125 where you use unicode(). I remember seeing "UnicodeDecodeError 0x4e is not a valid continuation byte" or some such
...
That helps. I can put a try/except around the get_urls_from_text(part.get_payload(...)) code, at least.

Attached is a test version that adds that plus some other tweaks to Email fetch--mostly changes to verbiage.

Last edited by JimmXinu; 02-21-2015 at 11:05 AM. Reason: Remove obsolete test versions - replaced by newer test or released version.
JimmXinu is offline  
Old 02-15-2015, 10:28 AM   #3729
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
Can I create a custom column that picks up the kudos and hits from AO3?
Yes. But they have to be separate columns and you have to set them using custom_columns_settings in personal.ini. AIR, you can't put two metadata into a single column.
JimmXinu is offline  
Old 02-15-2015, 07:05 PM   #3730
aehli
Junior Member
aehli began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: Kindle Paperwhite
Hi all, I don't know if it is due to the update or something else - I have recently downloaded several files and found when reading on my kindle (paperwhite) I am unable to continue to the next page (it doesn't allow me to press to next page). This has happened on 4 separate occasions.

- I tried pressing manually the next page number and it shows garbled text (and a lot of overlapping text), then it repeats the paragraph and I'm still unable to continue. (e.g. I'm stuck on page 199 so I manually go to page 200).
- Around 5 pages later it starts working as normal, however 5 pages of text are skipped. (Page 205 is normal)
- I've tried recreating the mobi and same thing happens
- I've tried creating epub then converting to mobi and it doesn't work
- the file seems to work fine on the computer (calibre).

I'm not sure if this is an issue with:
- my kindle
- the plugin
- the file itself

If anyone knows anything about this and a fix that would be great.
Thank you

EDIT: Found a similar situtation in past post so will try it.
EDIT 2: When I convert from epub to mobi, the converted file on kindle is just a blank white screen.
EDIT 3: When I convert from epub to AZW - success!

Last edited by aehli; 02-15-2015 at 07:39 PM. Reason: found issue in past post - resolved when converting to AZW from epub
aehli is offline  
Old 02-16-2015, 03:41 AM   #3731
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
How do I get rid of the tag that says Fanfiction in every story?

I've tried looking through the settings but I can't find it.

Edit:

I've also added the following in my personal.ini but the tag still shows up.

Quote:
extra_tags:

Last edited by Tanjamuse; 02-16-2015 at 04:42 AM.
Tanjamuse is offline  
Old 02-16-2015, 05:14 AM   #3732
chrnno
Connoisseur
chrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with others
 
Posts: 50
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
Quote:
Originally Posted by Tanjamuse View Post
How do I get rid of the tag that says Fanfiction in every story?

I've tried looking through the settings but I can't find it.

Edit:

I've also added the following in my personal.ini but the tag still shows up.
There is no _ in the code so just correct it under defaults to 'extratags' and it should work.
chrnno is offline  
Old 02-16-2015, 05:18 AM   #3733
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 can still see the Fanfiction Tag.

Edit:

It works now

Do you by any chance know how to make an url clickable?

Like the one I have in the bottom for the story?
Attached Thumbnails
Click image for larger version

Name:	Skærmbillede 2015-02-16 11.20.49.png
Views:	295
Size:	141.3 KB
ID:	134899  

Last edited by Tanjamuse; 02-16-2015 at 05:21 AM.
Tanjamuse is offline  
Old 02-16-2015, 10:42 AM   #3734
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
I think this question came up a few times before, and it's currently not possible in Calibre IIRC.

Last edited by cryzed; 02-16-2015 at 11:15 AM.
cryzed is offline  
Old 02-16-2015, 12:55 PM   #3735
BookJunkieLI
Evangelist
BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.
 
BookJunkieLI's Avatar
 
Posts: 435
Karma: 572984
Join Date: Jan 2010
Location: Long Island
Device: Kobo Libra 2, Kindle 4, Nook Gl4, Nook STR, REB 1100, Ebookwise 1500,
I'm trying to setup a custom column to download AO3's kudos into and I keep getting the following error message:

Code:
Bad
Al Hamdu li-llah (All praise is due to Allah)
fresne
invalid literal for float(): 15.0 kudos=>#kudos
http://archiveofourown.org/works/37820
I've tried it as an integer column and as a floating point number column but always the same error message. I've tried no number formatting and I've tried {0:,} and {0:f}. I looked at the python documentation page linked in Calibre's custom column setup page but honestly it made zero sense to me.

This is the line I added to my personal.ini under AO3:
kudos=>#kudos

Any idea what I'm doing wrong?
BookJunkieLI is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Resize Cover kiwidude Plugins 100 07-10-2025 08:50 AM
[GUI Plugin] Count Pages kiwidude Plugins 1844 05-25-2025 11:24 AM
[GUI Plugin] Find Duplicates kiwidude Plugins 1124 04-18-2025 09:19 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 04:25 AM.


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