mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 05:53:10 +02:00
...
This commit is contained in:
parent
81522f6d8c
commit
1e31e39ac5
1 changed files with 2 additions and 0 deletions
|
|
@ -2451,6 +2451,8 @@ def add_news(self, path, arg):
|
|||
stream.seek(0)
|
||||
mi = get_metadata(stream, format, use_libprs_metadata=False)
|
||||
stream.seek(0)
|
||||
if not mi.series_index:
|
||||
mi.series_index = 1.0
|
||||
mi.tags = [_('News')]
|
||||
if arg['add_title_tag']:
|
||||
mi.tags += [arg['title']]
|
||||
|
|
|
|||
Loading…
Reference in a new issue