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 05-31-2014, 02:19 PM   #2746
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@Firedancer885 - That is going to be challenging to parse.

adapter_archiveskyehawkecom.py looks like it deals with something similar. I didn't write that one, so I'm guessing a little.
JimmXinu is offline  
Old 05-31-2014, 02:38 PM   #2747
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
This might help.
cryzed is offline  
Old 05-31-2014, 03:43 PM   #2748
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Thanks
Firedancer885 is offline  
Old 05-31-2014, 06:50 PM   #2749
iakovl
Connoisseur
iakovl began at the beginning.
 
Posts: 80
Karma: 10
Join Date: Dec 2009
Device: none
ok,
just setup calibre from scratch in my new pc
had some problems but sorted out most of them

still have few issues
1. i can't seem to make online library so i just made dropbox folder as "main device" so it exports to it, anyway to auto send updated/new fics to it?
2. some covers don't have names on it, anyway to add the fic name to the cover without loosing cover image?
iakovl is offline  
Old 05-31-2014, 07:54 PM   #2750
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by iakovl View Post
1. i can't seem to make online library so i just made dropbox folder as "main device" so it exports to it, anyway to auto send updated/new fics to it?
I don't know anything about using dropbox as a device, but this page documents a way to use the Reading List plugin with FFDL to auto-send to real devices.
Quote:
Originally Posted by iakovl View Post
2. some covers don't have names on it, anyway to add the fic name to the cover without loosing cover image?
The Generate Cover plugin can generate a cover from the cover image already in a book and add text to it.
JimmXinu is offline  
Old 06-01-2014, 04:47 PM   #2751
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
Attached are 2 patches for the plugin. One adds an adapter for http://voracity2.e-fic.com/ and the other is a patch to pretty-print specifically downloaded metadata when using the CLI.

@Firedancer885 I was half-finished when I realized that you were trying to develop your own adapter, so I just finished mine. I hope that it will still help you learn Python.

Last edited by cryzed; 06-06-2014 at 02:14 PM.
cryzed is offline  
Old 06-01-2014, 05:12 PM   #2752
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Attached is a test version with cryzed's changes.

They look good and work for me, so they'll be in the next version; assuming nobody else has problems when they use them.

Thanks, cryzed.

Last edited by JimmXinu; 06-04-2014 at 10:59 PM. Reason: Remove obsolete beta versions
JimmXinu is offline  
Old 06-01-2014, 05:20 PM   #2753
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
No problem! Quick notice, I sneakily changed one of the patches and re-attached it. You might want to re-patch it before committing to the repository (I changed the _customized_fetch_url and _login method slightly), sorry about that.
cryzed is offline  
Old 06-02-2014, 11:12 AM   #2754
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Thanks cryzed I stuggled for a time and then gave up. I realized I don't have the necessary knowledge yet to develop an adapter that needs more than the basic changes.
Firedancer885 is offline  
Old 06-02-2014, 11:44 AM   #2755
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
Just keep trying, Python is an awesome programming language . It would probably help if you focused on reading and learning the BeautifulSoup documentation first instead of directly trying to write an adapter with it for an existing codebase.

I heard great things about http://learnpythonthehardway.org/ and it seems to be the way to go if you really want to get into Python programming nowadays. Don't let the name deter you, it's actually aimed at beginners. (And don't be confused by the price tag, it's free for you to read online)

That reminds me: Is there any reason why you are not updating the BeautifulSoup version Jimm? All the changes should be backwards-compatible and the new BeautifulSoup 4 has some new useful features and is more pythonic generally.

Last edited by cryzed; 06-02-2014 at 11:47 AM.
cryzed is offline  
Old 06-02-2014, 12:08 PM   #2756
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I agree that Python is a nice language.

And I'll admit that FFDL isn't necessarily a great project to learn python with because a lot of FFDL reflects my personal C/Perl/Java background and isn't properly 'pythonic'. It's the project I learned python on.

Quote:
Originally Posted by cryzed View Post
That reminds me: Is there any reason why you are not updating the BeautifulSoup version Jimm? All the changes should be backwards-compatible and the new BeautifulSoup 4 has some new useful features and is more pythonic generally.
I recall two reasons off hand: the version that's included in FFDL has been mildly modified and newer versions are packaged--they have to be installed via pip or equivalent into the python environment. Neither the user or I have control of the python environment in calibre or in the web service version.

So I've stuck with what I know works rather than try to work around proper packaging of new BeautifulSoup versions to include it directly.
JimmXinu is offline  
Old 06-02-2014, 12:15 PM   #2757
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
Oh I see, I didn't know there were modifications made to the module. Also BeautifulSoup 4 being packaged would be no problem in itself, you could just include the whole folder ("bs4" in the "site-packages" folder) in the project, unless I misunderstood what you meant by packaging.

Also I didn't mean to criticize the codebase, I'm sorry if it came off like that. I was rude enough the first time around and I'm really just glad that it works as well as it does currently.

Last edited by cryzed; 06-02-2014 at 12:17 PM.
cryzed is offline  
Old 06-02-2014, 12:24 PM   #2758
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by cryzed View Post
Oh I see, I didn't know there were modifications made to the module. Also BeautifulSoup 4 being packaged would be no problem in itself, you could just include the whole folder ("bs4" in the "site-packages" folder) in the project, unless I misunderstood what you meant by packaging.
I recall trying that once and it didn't work out. I don't remember the exact details about why.
Quote:
Originally Posted by cryzed View Post
Also I didn't mean to criticize the codebase, I'm sorry if it came off like that. I was rude enough the first time around and I'm really just glad that it works as well as it does currently.
No problem, it was a valid question.

FFDL is largely in maintenance mode for me these days--if something's not actively broken, I don't have a lot of ambition to change it. I especially welcome it when other people write new site adapters.
JimmXinu is offline  
Old 06-04-2014, 02:18 AM   #2759
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Hi,

I am using FFDL to download fic from Archive of our own and I am having trouble figuring out if there is a way to exclude all the extra tags and characters that are added to the tag field? I am reading across multiple fandoms so I am looking for something that'll exclude everything in the Characters and Additional Tags fields.

I'd appreciate any and all help.

Thanks,
Amalthia
Amalthia is offline  
Old 06-04-2014, 09:29 AM   #2760
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Amalthia View Post
I am using FFDL to download fic from Archive of our own and I am having trouble figuring out if there is a way to exclude all the extra tags and characters that are added to the tag field? I am reading across multiple fandoms so I am looking for something that'll exclude everything in the Characters and Additional Tags fields.
There are some options, but it's a bit complicated depending on exactly what you want to accomplish.

What are the specific story URL and the tags you want to exclude? Or what tags do you want to include (excluding everything else)?
JimmXinu is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 1846 08-02-2025 10:44 PM
[GUI Plugin] Resize Cover kiwidude Plugins 100 07-10-2025 08:50 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 08:41 PM.


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