From 09f49faa484b5091be175823e406cbebb4162e3a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 21 May 2016 17:04:35 +0300 Subject: [PATCH] Output serial number of the book in the series --- docs-ru/command_line.rst | 3 ++- docs/command_line.rst | 3 ++- scripts/ml-search.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs-ru/command_line.rst b/docs-ru/command_line.rst index 67cb5f6..6f3c94b 100644 --- a/docs-ru/command_line.rst +++ b/docs-ru/command_line.rst @@ -115,7 +115,8 @@ ml-search.py По умолчанию программы выводит список заголовков найденных книг. При использовании опции `-d` также выводится список авторов и жанров, а -также серия, к которой принадлежит книга (если принадлежит). +также серия, к которой принадлежит книга (если принадлежит) и порядковый +номер книги в этой серии. Поиск расширений ^^^^^^^^^^^^^^^^ diff --git a/docs/command_line.rst b/docs/command_line.rst index 0dd5365..fdc5f97 100644 --- a/docs/command_line.rst +++ b/docs/command_line.rst @@ -113,7 +113,8 @@ Options:: By default the program prints only titles of the found book. With one option `-d` it also prints the list of authors and genres, and also -series the book belongs to (if any). +series the book belongs to (if any) and the serial number of the book in +the series. Extension search ^^^^^^^^^^^^^^^^ diff --git a/scripts/ml-search.py b/scripts/ml-search.py index 39d3dab..bdb1d9d 100755 --- a/scripts/ml-search.py +++ b/scripts/ml-search.py @@ -76,7 +76,8 @@ def _search_books(case_sensitive, search_type, args): print if book.series: print " ", _("Series"), ":", - print book.series.encode(default_encoding) + print book.series.encode(default_encoding), \ + "(%d)" % book.ser_no def _search_extensions(case_sensitive, search_type, args): -- 2.39.2