View Single Post
Old 01-04-2015, 08:49 AM   #1
ivanm
e^bored
ivanm began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
Syntax for custom lists in programs

I'm trying to add a tag to my books based upon whether it's a graphic novel.

What I'm trying to do is:
Code:
comic_types = ["CBR", "CBZ", "CBT", "CBA", "CB7"];
formats = approximate_formats();

has_comic_formats = list_intersection(comic_types, formats,",");
# etc.
However, the definition of comic_types is obviously wrong (in that I get a "Formatter: failed to scan program. Invalid input ..." error when I try to use it).

Does calibre have support for actual lists, or is it just all operating on Strings (and doing text-munging)?
ivanm is offline   Reply With Quote