Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2024, 12:55 PM   #1
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
Download several entites of a reciepe

Hi,

I use the Heise CT recipe to get my online Magazines as a ePub. Anyway, if I want to get older versions of the Magazine, I have to set manually in the Recipe the variable issue to a version I want to get (for example issue ='2024/19'

My question is, if this could be somewhere automatized. For example like a loop wich goes thru all of year. Or that the start of the recipe is asking for the recipe number?

A loop I'm not sure (I guess python has loops, that's not the issue ) but I'm not sure how to handle it in the instance of a startet reciepe that each of the magazines should be an own epub.

I hope my question is clear enough. Thanks for any help.

BR
MP
MasterPlexus is offline   Reply With Quote
Old 11-09-2024, 09:59 PM   #2
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cant do that within a recipe. Instead use a variable in the recipe and write a script that downloads it using the ebook-convert command line tool changing the value of the variable via the --recipe-specific-option command line flag.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-14-2024, 12:33 PM   #3
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
OK, after several research and trys I bring it up to work, but I still have some questions:
I could call the recipe to start in this wy:
Code:
ebook-convert "C:\Users\Dirk\AppData\Roaming\calibre\custom_recipes\Heise ct_1001.recipe" "Heise Ct 2024-01.epub" --recipe-specific-option issue:/select/ct/2024/01
but some things are slightly problematic:
- the recipe needs login, but the login values are not used which are set in properties of the reciepe. How could I overhand them (currently I use a workaround to directly set the values in the reciepe, but this is not 'nice'
- the calibre-convert does not take care the rule wich defines how the ebook should be named, it must be the second parameter. of course I can live with that.
- the calibre-convert does not store the generated epub automatically in the library. I have to import them then manually (or I have to use the automatic folder check).
- calibre-convert does not respect the CALIBRE_DEVELOP_FROM parameter, and only the Standard installation will be used, even that I made some changes in src path.

so for me the calibre-convert looks like a little bit extra/outside of the calibre environment.

Again, could live with it, but just wondering. And also thanks for the very good program and the support. This could not be less higly apreciated
MP
MasterPlexus is offline   Reply With Quote
Old 11-14-2024, 08:47 PM   #4
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
--username and --password
Use calibredb command to add files to the calibre library
ebook-convert most definitely respects CALIBRE_DEVELOP_FROM
kovidgoyal is offline   Reply With Quote
Old 11-15-2024, 12:16 PM   #5
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
Quote:
Originally Posted by kovidgoyal View Post
--username and --password
Ah, of course, I have to better read the docu Thanks.

Quote:
Use calibredb command to add files to the calibre library
Yes, this I could include into my batch script. But it is a rebuild of internal processes. But ok

Quote:
ebook-convert most definitely respects CALIBRE_DEVELOP_FROM
I updated the simple.py script to include the png also to be shrinked. But wenn i use calibre-convert this is not taken into account. May I miss here something?
MasterPlexus is offline   Reply With Quote
Advert
Old 11-23-2024, 07:53 AM   #6
Atharv59
Junior Member
Atharv59 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2024
Device: Kobo Clara HD
Download several entites of a reciepe

Hi,

I use the Heise CT recipe to download my online magazines as ePubs. However, when I want older issues, I manually set the `issue` variable in the recipe to the desired version (e.g., `issue = '2024/19'`).

My question is whether this process could be automated. For instance, could a loop go through all issues for a given year, or could the recipe prompt me to enter the issue number when it starts?

I’m familiar with Python loops so that part isn’t the challenge. My main concern is ensuring that each magazine is saved as a separate ePub.

I hope my question is clear. Thanks in advance for any help.
Atharv59 is offline   Reply With Quote
Old 11-23-2024, 10:44 PM   #7
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by kovidgoyal View Post
You cant do that within a recipe. Instead use a variable in the recipe and write a script that downloads it using the ebook-convert command line tool changing the value of the variable via the --recipe-specific-option command line flag.
Your question was answered here.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download (Download all) Personal documents from Amazon Bratnikotin Amazon Kindle 2 06-21-2020 09:58 PM
Troubleshooting Kindle device download hang / Kindle App download failure IsraeliReader Amazon Kindle 2 10-28-2016 11:18 AM
Why tags download only after second click on "Download metadata"? fufu42 Library Management 2 12-08-2012 12:08 PM
Does "Download Metadata & Covers" also download social metadata? iridius Library Management 3 02-22-2011 12:50 PM


All times are GMT -4. The time now is 12:38 AM.


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