mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:53:09 +02:00
Store: Fix spacing on ebooks.com formats.
This commit is contained in:
parent
d6c7447e0a
commit
94e4a48bba
1 changed files with 1 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ def get_details(self, search_result, timeout):
|
|||
fdata = ', '.join(pdoc.xpath('//table[@class="price"]//tr//td[1]/text()'))
|
||||
fdata = fdata.replace(':', '')
|
||||
fdata = re.sub(r'\s{2,}', ' ', fdata)
|
||||
fdata = fdata.replace(' ,', ',')
|
||||
fdata = fdata.strip()
|
||||
search_result.formats = fdata
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue