mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix save_to_disk not handling identifiers correctly. Kovid fixed the other part of this bug.
This commit is contained in:
parent
3861b5d599
commit
33ea83d118
@ -200,6 +200,11 @@ def get_components(template, mi, id, timefmt='%b %Y', length=250,
|
|||||||
template = re.sub(r'\{series_index[^}]*?\}', '', template)
|
template = re.sub(r'\{series_index[^}]*?\}', '', template)
|
||||||
if mi.rating is not None:
|
if mi.rating is not None:
|
||||||
format_args['rating'] = mi.format_rating(divide_by=2.0)
|
format_args['rating'] = mi.format_rating(divide_by=2.0)
|
||||||
|
if mi.identifiers:
|
||||||
|
format_args['identifiers'] = mi.format_field_extended('identifiers')[1]
|
||||||
|
else:
|
||||||
|
format_args['identifiers'] = ''
|
||||||
|
|
||||||
if hasattr(mi.timestamp, 'timetuple'):
|
if hasattr(mi.timestamp, 'timetuple'):
|
||||||
format_args['timestamp'] = strftime(timefmt, mi.timestamp.timetuple())
|
format_args['timestamp'] = strftime(timefmt, mi.timestamp.timetuple())
|
||||||
if hasattr(mi.pubdate, 'timetuple'):
|
if hasattr(mi.pubdate, 'timetuple'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user