View Single Post
Old 02-07-2013, 01:54 PM   #10
Willum
Junior Member
Willum began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2013
Device: none
Ok, now I have it worked out.
This will create the catalogs in a windows environment:

catalog.bat:
Code:
@ECHO OFF
Call CreateCatalog "Detectives" 
Call CreateCatalog "Detectives en Thrillers"
Call CreateCatalog "Dictionaries"
Call CreateCatalog "Fantasy"
Call CreateCatalog "Jeugdboeken"
Call CreateCatalog "Korte verhalen en Gedichten"
Call CreateCatalog "Literatuur en Romans"
Call CreateCatalog "Literatuur klassiek"
Call CreateCatalog "Non-fictie"
Call CreateCatalog "Reisverhalen"
Call CreateCatalog "Reizen"
Call CreateCatalog "Science Fiction"
Call CreateCatalog "Spionage"
Call CreateCatalog "Thrillers"

:: 
:: Create a separated book with all series 
::
SET CALIBREDBPROG="C:\Program Files (x86)\Calibre2\calibredb"
SET TARGETFILE="G:\My Documents\Calibre Bibliotheek\Series.epub" 

%CALIBREDBPROG% catalog %TARGETFILE% -s "series:true"
%CALIBREDBPROG% add --tags Catalog --title Series --authors "Calibre" %TARGETFILE%
DEL %TARGETFILE%

EXIT
CreateCatalog.bat:
Code:
SET CALIBREDBPROG="C:\Program Files (x86)\Calibre2\calibredb"
SET TAGNAME=%~1
SET TAGS=tags:\"=%TAGNAME%\"
SET TARGETFILE="G:\My Documents\Calibre Bibliotheek\%TAGNAME%.epub" 

%CALIBREDBPROG% catalog %TARGETFILE% -s "%TAGS%"
%CALIBREDBPROG% add --tags Catalog --title "%TAGNAME%" --authors "Calibre" %TARGETFILE%
DEL %TARGETFILE%
Willum is offline   Reply With Quote