Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2024, 12:51 PM   #1
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
import a folder to calibre with several html files and pictures

Hi all,

I try to import a folder, where I have a startpage (1_start.html) which is a inventory of all HTML files in the folder. In the same folder all pictures also from the sub pages are stored. But when I import this into Calibre, only the pictures linked on the 1_start.html are stored in the Zip-Book, but all subpages are part of the boog. Is there a possibility to guide Calibre also to include the other pictures?
By the way, also the command do it in the same way:
Code:
calibredb add "C:\Users\zonk\OneDrive\book\2023_1\1_start.html" --title "Heise ct 2023-01" --author "calibre" --cover C:\Users\Dirk\OneDrive\book\2023_1\cover.jpg
thanks in advance
MP
MasterPlexus is offline   Reply With Quote
Old 12-12-2024, 09:15 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: 44,736
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Assuming your HTML files and their resources are linked correctly that means using relative paths with correct separators, it will just work.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-13-2024, 12:34 PM   #3
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
my htmls are in that way (relative path, for the further htmls and the pictures), but as stated the pictures are only included for 1_start.html, but not what is linked in the further pages.

Unfortunately I can not upload the files here, as they are coming from a pro account.
MasterPlexus is offline   Reply With Quote
Old 12-13-2024, 05:47 PM   #4
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
I see a message when I use the command option, for example:
Code:
IgnoreFile('C:\\Users\\Dirk\\OneDrive\\book\\test\\seite-18.html is a binary file')
Could that be a reason why it is not correctly handled?
MasterPlexus is offline   Reply With Quote
Old 12-13-2024, 09:39 PM   #5
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: 44,736
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, it means your HTML files dont contain <html in th efirst 4KB of the file.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-15-2024, 09:51 AM   #6
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
OK got it. I attached HTML, Header and Body tags and then it works.

For me this is unknowing, as the Recipies does not be blocked in this way. Several scripts there delete all what is outside of the main content (including the html tags), but receive anyhow the images. But the difference here is may that the reciepe itself load all the files and modifies them on the fly.

Anyhow, my issue is solved with this tip, thanks!
MasterPlexus is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract HTML files, fix, re-import? Shohreh ePub 6 09-06-2024 05:49 AM
How to import boook without copy files to library folder? fpaulon Library Management 3 07-17-2024 06:15 PM
How to get Calibre to import 500ish .html index files? bounce Calibre 3 06-03-2019 05:31 PM
Importing more files from HTML folder. sol_barbez Sigil 2 02-25-2011 11:02 AM
Applying Calibre recipes to a folder of pre-existing HTML files MattK Calibre 3 09-24-2008 02:15 PM


All times are GMT -4. The time now is 08:58 PM.


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