Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-29-2010, 07:40 AM   #286
TBR
Junior Member
TBR began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505, Asus eeePC 1000H
First of all thanks for your marvelous software and sincere admiration for your continuing determination!

I've already tried with an enhancement request and you closed it referring to the API Documentation and the source code. What I mainly seek is a way to customize news recipes to check the feeds of various news sources for articles that contain one or more of a list of keywords, creating a press overview for a certain topic (e.g. a recipe which creates an e-book of any nyt, wsj, washpost etc. article in the specified period containing the word "Afghanistan" and none of the articles that don't)
I've looked at
http://calibre-ebook.com/user_manual/news.html
http://calibre-ebook.com/user_manual...asicnewsrecipe
http://bazaar.launchpad.net/~kovid/c.../feeds/news.py
but I can't find a way to do it. Am I dense, missing some documentation or have we been mis-communicating?
TBR is offline  
Old 01-29-2010, 09:22 AM   #287
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you've seen http://bazaar.launchpad.net/~kovid/c.../feeds/news.py

there's not much more I can tell you. Basically, you can completely customize the news download process by overring the methods of that class. So if you want to create a compsite recipe you would create a parse_index method that will list all the current articles in your various news sources. Then you would override postprocess_html to check for the required keywords and if absent return None
kovidgoyal is offline  
Old 02-01-2010, 12:56 AM   #288
Francesco
Aficionado
Francesco will become famous soon enoughFrancesco will become famous soon enoughFrancesco will become famous soon enoughFrancesco will become famous soon enoughFrancesco will become famous soon enoughFrancesco will become famous soon enoughFrancesco will become famous soon enough
 
Francesco's Avatar
 
Posts: 391
Karma: 710
Join Date: Jul 2003
Location: Denver, CO, USA
Device: Nexus 7, Kindle Touch
Hi, thanks for all your work.

I'm just added this feed: http://www.jornada.unam.mx/rss/cartones.xml
Which links to political cartoons. Unfortunately, images are not downloaded, it only shows a little icon in place of the actual jpg. Could you please help me? Is there a line of code I must add?
Thanks!
Francesco is offline  
Old 02-13-2010, 12:11 PM   #289
lizzybeth05
Member
lizzybeth05 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Feb 2009
Location: NYC
Device: none
help with uninstalling old calibre & installing new calibre

So i havent used my ereader in a few months, and as a result, I havent open calibre for awhile either. Today i opened calibre and it told me that there was a new version available and asked if i wanted to update. I clicked yes and it directed me to the website so that i could download the new calibre file.

After downloading i immediately started installing the new version (without uninstalling the my other version - vs 0.6.12) After the new installation had started, i noticed that the website says that if the old version is older than 0.6.17 to uninstall calibre, delete c:\program files\calibre and then install the new version.

When i saw this, i canceled the new installations, and then went to c:\program files\calibre and tried to run uninstall.exe but i got the following error:

Code:
Error in action ExecuteAction

Error in action UninstallSelectedFiles

couldn't open "C:/Program Files/calibre/uninstall.exe": permission denied
    while executing
"::open $filename $access $permissions"
    (procedure "miniarc::open" line 64)
    invoked from within
"miniarc::open crap $filename a"
    (procedure "installkit::addfiles" line 2)
    invoked from within
"installkit::addfiles $conf(uninstall) $files $names"
    (procedure "::InstallJammer::StoreLogsInUninstall" line 25)
    invoked from within
"::InstallJammer::StoreLogsInUninstall"
    (procedure "::InstallJammer::CleanupInstallInfoDirs" line 59)
    invoked from within
"::InstallJammer::CleanupInstallInfoDirs"
    (procedure "::InstallJammer::actions::UninstallSelectedFiles" line 336)
    invoked from within
"::InstallJammer::actions::$component $this"
    while executing
"$obj execute"
    (procedure "::InstallJammer::ExecuteActions" line 62)
    invoked from within
"::InstallJammer::ExecuteActions $action -parent $id -conditions $eval"
    (procedure "::InstallJammer::actions::ExecuteAction" line 35)
    invoked from within
"::InstallJammer::actions::$component $this"
Error in action ExecuteAction

Error in action UninstallSelectedFiles

couldn't open "C:/Program Files/calibre/uninstall.exe": permission denied
    while executing
"::open $filename $access $permissions"
    (procedure "miniarc::open" line 64)
    invoked from within
"miniarc::open crap $filename a"
    (procedure "installkit::addfiles" line 2)
    invoked from within
"installkit::addfiles $conf(uninstall) $files $names"
    (procedure "::InstallJammer::StoreLogsInUninstall" line 25)
    invoked from within
"::InstallJammer::StoreLogsInUninstall"
    (procedure "::InstallJammer::CleanupInstallInfoDirs" line 59)
    invoked from within
"::InstallJammer::CleanupInstallInfoDirs"
    (procedure "::InstallJammer::actions::UninstallSelectedFiles" line 336)
    invoked from within
"::InstallJammer::actions::$component $this"
    while executing
"$obj execute"
    (procedure "::InstallJammer::ExecuteActions" line 62)
    invoked from within
"::InstallJammer::ExecuteActions $action -parent $id -conditions $eval"
    (procedure "::InstallJammer::actions::ExecuteAction" line 35)
    invoked from within
"::InstallJammer::actions::$component $this"
    while executing
"$obj execute"
    (procedure "::InstallJammer::ExecuteActions" line 62)
    invoked from within
"::InstallJammer::ExecuteActions $id -when $when"
    (procedure "::InstallJammer::RaiseEventHandler" line 79)
    invoked from within
"::InstallJammer::RaiseEventHandler  .wizard"
    (command bound to event)
please help i dont know how to proceed!!

FYI, i still have all my old calibre install files, could i try reinstalling 0.6.12 and then uninstall everything and delete c:\program files\calibre and then install 0.6.40?

thanks in advance

edit: i noticed on the calibre website that a suggestion is to run calibre-debug -g in the comand promt and post the results, so i did this:
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Elizabeth>calibre-debug -g
'calibre-debug' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Elizabeth>

Last edited by lizzybeth05; 02-13-2010 at 12:36 PM.
lizzybeth05 is offline  
Old 02-13-2010, 05:35 PM   #290
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
try tight clicking on uninstall.exe and selecting run as administrator
kovidgoyal is offline  
Old 02-15-2010, 09:27 AM   #291
MichaelJLucasWV
Junior Member
MichaelJLucasWV began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2009
Device: Amazon Kindle 1
Just curious, anyway for a layman to have Calibre delete the original ebook on my hard drive when it adds the book to its library? There's no reason to keep both copies on my hard drive, and it would make it a LOT easier for me to remember what i have moved already. (i have MANY ebooks to move and fix the metadata for. Sorry if this is covered already, OR if this is a daft question. I'm still learning.
MichaelJLucasWV is offline  
Old 02-15-2010, 09:43 AM   #292
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, i'm afraid not
kovidgoyal is offline  
Old 02-16-2010, 01:24 AM   #293
Tactical Fart
Junior Member
Tactical Fart began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2009
Device: G1
I've been looking at the documentation a little harder (since my post about increasing the TOC past 50) and found a bunch of metadata arguments that I found useful. However, the program I'm writing has a flaw. It uses calibre's ebook-convert command by sending it to the OS as a command. My program gets data from the internet, parses and organizes it, then calls ebook-convert to make the ebook. But if an author's name has white space, like "John Doe", and I use the "--author" argument, it will only see
Code:
-- author "John
No, that's not a typo. It will accept the quotation marks as part of the argument. The only work around I can see is to put the information into the html file(s) and let calibre finish the job. Is there a way to make ebook-convert look in a certain file for metadata, such as author, comments, etc, when converting?
Tactical Fart is offline  
Old 02-16-2010, 01:30 PM   #294
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
create an opf file and pass that to ebook-convert

But you're almost certainly misusing whatever facility your script has to call external programs, if you're seeing command line arguments incorrectly processed.
kovidgoyal is offline  
Old 02-17-2010, 12:18 AM   #295
Tactical Fart
Junior Member
Tactical Fart began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2009
Device: G1
It's a java program. I don't think there's a work around. I can post the method that I use if you want though.

Can I get a sample opf that ebook-convert will take? I found the ones in the epubs I've made thus far. If I specify an opf, does ebook-convert make it's own based on the one specified or does the one specified receive total priority? Also how do I pass the opf to ebook-convert? Or did you mean ebook-meta?

Edit:
I found a work around. I used an opf that I extracted from an epub that ebook-convert made, striped it down so that it is very basic, manually replaced a few fields, then used ebook-meta. It only replaced the metadata that was specified in the opf. I'll just have my program construct a basic opf, and then call ebook-meta when the ebook is made. Thanks again for your help, and for this ridiculously powerful program.

Last edited by Tactical Fart; 02-17-2010 at 10:32 AM. Reason: Found a solution.
Tactical Fart is offline  
Old 02-17-2010, 10:22 AM   #296
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
An OPF file will be exactly like the ones you find in epubs. And no, I mean ebook-convert. If you use an OPF file, it will take the metadata from the OPF file.
kovidgoyal is offline  
Old 02-17-2010, 11:08 AM   #297
Tactical Fart
Junior Member
Tactical Fart began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2009
Device: G1
So for the input, I target the opf instead of an "index.html"?

Edit:
I gave it a try and it worked. I was just a little nervous using a new file extension.

Last edited by Tactical Fart; 02-18-2010 at 01:19 AM. Reason: Success!
Tactical Fart is offline  
Old 02-20-2010, 12:14 PM   #298
MichaelJLucasWV
Junior Member
MichaelJLucasWV began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2009
Device: Amazon Kindle 1
thanks for the quick response, btw, calibre is BY FAR the most useful program that i have ever had the pleasure to "run across" on the great big interwebs. Seriously, FANTASTIC work here. When i saw the demo, I was literally giddy with anticipation of being able to "fix" and organize my entire ebook collection, and get it all on my new Sony prs-600. I still cant believe it does all of this. OK, im sorry, i'm finished gushing, now, a quick last question:
can i get calibre to auto-convert all ebooks i add to the library as i add them? meaning can i have it to turn every book that i add into an epub file as part of the import process? thanks for taking the time to answer my questions. and thanks for making such a great program.
MichaelJLucasWV is offline  
Old 02-20-2010, 12:27 PM   #299
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, calibre doesn't do auto convert
kovidgoyal is offline  
Old 02-21-2010, 12:52 AM   #300
Tactical Fart
Junior Member
Tactical Fart began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2009
Device: G1
Something else I've noticed when using calibre. Every time I use ebook-convert, it says stuff like
Code:
Parsing file 'file6.html' as HTML
File 'file6.html' missing <head/> element
Am I supposed to include a <head> area or should I just not worry about it? It still makes the ebooks, regardless.
Tactical Fart is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions (and answers too!) Stinger Kobo Reader 112 05-12-2017 11:40 AM
PRS-300 Reader freezing frequently paddy77 Sony Reader 15 01-17-2011 02:33 AM
PRS-600 Do you frequently read PDFs on your PRS600? drmaxx Sony Reader 20 09-22-2009 07:15 PM
Questions we wish we had asked before buying a Reader Dr. Drib Sony Reader 15 05-22-2009 06:13 AM
Three not asked earlier questions about iLiad Malder1 iRex 9 08-14-2006 02:10 PM


All times are GMT -4. The time now is 04:47 PM.


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