epubctl
View EPUB metadata and rename EPUB files using metadata templates.
Usage Example
$ ls
hello.epub hello.odt hello.pdf
$ epubctl show *
hello.epub
- Title: Hello
- Author: Foo
- Publisher: Bar
EPUBs: 1
$ epubctl rename --template "{title} - {author}" *
hello.epub
- Hello - Foo.epub
- Hello - Foo.odt
- Hello - Foo.pdf
EPUBs: 1
$ ls
'Hello - Foo.epub' 'Hello - Foo.odt' 'Hello - Foo.pdf'
Filter Flags
The EPUB files processed by each command can be filtered using the --include
and --exclude flags. By default, the filters match on the file path and all
supported metadata fields. This can be limited by using filter prefixes:
author:
path:
publisher:
title:
By default, multiple filters must all match for an EPUB file to be included
or excluded. This can be changed by using --include-any and --exclude-any.
The --ignore-case flag causes all filters to be case-insensitive.