mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Automatically add the Tag 'Sample Book' when an Amazon sample is added to calibre
This commit is contained in:
parent
2509e6e51f
commit
8a9f82313b
@ -46,7 +46,10 @@ class EXTHHeader(object): # {{{
|
|||||||
self.thumbnail_offset, = struct.unpack('>L', content)
|
self.thumbnail_offset, = struct.unpack('>L', content)
|
||||||
elif idx == 501:
|
elif idx == 501:
|
||||||
# cdetype
|
# cdetype
|
||||||
pass
|
if content == b'EBSP':
|
||||||
|
if not self.mi.tags:
|
||||||
|
self.mi.tags = []
|
||||||
|
self.mi.tags.append(_('Sample Book'))
|
||||||
elif idx == 502:
|
elif idx == 502:
|
||||||
# last update time
|
# last update time
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user