mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:22:45 +02:00
Fix series index always 1 in header/footer in the viewer
This commit is contained in:
parent
6d2d0d8201
commit
370ed05c57
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ def render_head_foot(div, which, region, progress_frac, metadata, current_toc_no
|
|||
text = ' & '.join(metadata.authors or v'[]')
|
||||
elif field is 'series':
|
||||
if metadata.series:
|
||||
ival = fmt_sidx(ival, use_roman=interface_data.use_roman_numerals_for_series_number)
|
||||
ival = fmt_sidx(metadata.series_index, use_roman=interface_data.use_roman_numerals_for_series_number)
|
||||
text = _('{0} of {1}').format(ival, metadata.series)
|
||||
elif field is 'clock':
|
||||
text = time_formatter.format(Date())
|
||||
|
|
|
|||
Loading…
Reference in a new issue