![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
|
Computer Active recipe from command line ?
Hi, Just started using the recipes and very much impressed.
However I am having a problem with one specific recipe: Computer Active. When its run from within Calibre all is OK and the feed appears as normal. However when run from the command line (as I do from the small home server with all the other recipes) the Computer Active feed fails ? The headers and TOC appear but the individual article feeds fail. So what's different between running under the GUI and scheduling separately from the command line ? There are some error messages that appear as follows; Code:
M:\BooksAndText\Calibre Library\Calibre2>ebook-convert computer_active.recipe co mputer_active.mobi --output-profile kindle --test -vv --debug-pipeline ca-debug> > ca-debug.log ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa ce properties/CSS Level 2.1" property: bold [31:139: font-style] ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa ce properties/CSS Level 2.1" property: bold [31:139: font-style] ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa ce properties/CSS Level 2.1" property: bold [31:139: font-style] ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa ce properties/CSS Level 2.1" property: bold [31:139: font-style] ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa ce properties/CSS Level 2.1" property: bold [31:139: font-style] ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa ce properties/CSS Level 2.1" property: bold [31:139: font-style] ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa ce properties/CSS Level 2.1" property: bold [31:139: font-style] M:\BooksAndText\Calibre Library\Calibre2> Thoughts and assistance appreciated! |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
ebook-convert computer_active.recipe outputdir --test -vv > ca-debug.log |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
|
Thanks, I have tried that and have the debug directories, but looking under the "input" directory there doesn't appear to be anything downloaded, it creates an index.html under each feed_n & article_n which contains the correct URL for the feed but there are no other files to contain the text of the article, if I click the link in the index file that has been created which says "This article downloaded from" it does indeed take you to the article in question, but no where can I find the file that contains those download pages - so I assume that for some reason the pages are not being fetched when its run from the command line ? Other recipes are fine so a little bemused at present, as to where to go from here ?
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
If you are 100% sure that you've run the same recipe in both cases, I'll test at this end to see if I can replicate it. |
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
|
Thanks Starson17, that was the problem, an old version, I pulled it out of the Zip a few months back and it didn't work then, so put it to one side to investigate after a holiday, and have only just got back to it!
So final question - for the time being - what's the best way of automating getting the latest version of a recipe are they downloadable, rather than relying on the Zip copy ? |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
When run from the GUI, the current version of a builtin recipe is always grabbed. I don't know for certain how this process interfaces with the command line. I believe you can run a builtin recipe by recipe name and it will do the same fetch, while if you run it pointing to a local recipe filename it will use that local file, not the online updated version. I've never actually tested this out, so report back if you figure it out for sure. Finally, I suspect you could emulate the procedure that a GUI run builtin uses to grab the current version if you can't make one of the above work for you. |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Using a recipe title from the command line will fetch the latest, using a filename will not.
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
|
Many thanks Starson 17 and Kovid, I'll change all the file names to the relevant titles - I hadn't spotted that in the manual.
|
![]() |
![]() |
![]() |
#9 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
|
Quote:
![]() ![]() ![]() Obvious when you know it - any chance of it being included in the command line documentation I wonder ![]() |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You want
"Title.recipe" |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Command line - HOW? | bookfanmd | Calibre | 19 | 01-12-2013 09:17 AM |
Need help using command line | tsger | Recipes | 2 | 07-16-2011 03:23 AM |
How to use recipe with subscription from command line | miwie | Calibre | 3 | 11-23-2010 04:10 AM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |