From 07cd885b0a06450d51784bf442721e431b339319 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 9 May 2014 12:20:55 +0200 Subject: [PATCH] cleanup --- ox/web/lookupbyisbn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ox/web/lookupbyisbn.py b/ox/web/lookupbyisbn.py index af5d5f3..b4c2dcb 100644 --- a/ox/web/lookupbyisbn.py +++ b/ox/web/lookupbyisbn.py @@ -32,7 +32,9 @@ def get_data(isbn): r[key] = '' if key == 'pages' and r[key]: r[key] = int(r[key]) - r['description'] = strip_tags(find_re(data, '

Description:<\/h2>(.*?)
Description:<\/h2>(.*?)

', ' ').replace('
', ' ').replace('
', ' ') + r['description'] = strip_tags(desc).strip() if r['description'] == u'Description of this item is not available at this time.': r['description'] = '' r['cover'] = find_re(data, '