mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
91905e38f5
commit
ba2100ca43
@ -17,13 +17,13 @@ from calibre.ebooks.lrf.meta import LRFMetaFile
|
|||||||
from calibre import prints
|
from calibre import prints
|
||||||
from calibre.utils.date import parse_date
|
from calibre.utils.date import parse_date
|
||||||
|
|
||||||
USAGE=_('%%prog ebook_file [' + _('options') + ']\n') + \
|
USAGE=_('%prog ebook_file [options]\n') + \
|
||||||
_('''
|
_('''
|
||||||
Read/Write metadata from/to ebook files.
|
Read/Write metadata from/to ebook files.
|
||||||
|
|
||||||
Supported formats for reading metadata: %(read)s
|
Supported formats for reading metadata: {0}
|
||||||
|
|
||||||
Supported formats for writing metadata: %(write)s
|
Supported formats for writing metadata: {1}
|
||||||
|
|
||||||
Different file types support different kinds of metadata. If you try to set
|
Different file types support different kinds of metadata. If you try to set
|
||||||
some metadata on a file type that does not support it, the metadata will be
|
some metadata on a file type that does not support it, the metadata will be
|
||||||
@ -103,7 +103,7 @@ def option_parser():
|
|||||||
for w in metadata_writers():
|
for w in metadata_writers():
|
||||||
writers = writers.union(set(w.file_types))
|
writers = writers.union(set(w.file_types))
|
||||||
ft, w = ', '.join(sorted(filetypes())), ', '.join(sorted(writers))
|
ft, w = ', '.join(sorted(filetypes())), ', '.join(sorted(writers))
|
||||||
return config().option_parser(USAGE%dict(read=ft, write=w))
|
return config().option_parser(USAGE.format(ft, w))
|
||||||
|
|
||||||
def do_set_metadata(opts, mi, stream, stream_type):
|
def do_set_metadata(opts, mi, stream, stream_type):
|
||||||
mi = MetaInformation(mi)
|
mi = MetaInformation(mi)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user