diff --git a/wrp.py b/wrp.py
index 4a5401e..fe50261 100755
--- a/wrp.py
+++ b/wrp.py
@@ -42,7 +42,7 @@ __version__ = "2.0"
PORT = 8080
WIDTH = 1024
HEIGHT = 768
-ISMAP = "False" # ISMAP=True is Server side for Mosaic 1.1 and up. HTML 3.2 supports Client side maps (ISMAP=False)
+ISMAP = False # ISMAP=True is Server side for Mosaic 1.1 and up. HTML 3.2 supports Client side maps (ISMAP=False)
WAIT = 1 # sleep for 1 second to allow javascript renders
QUALITY = 75 # For JPEG: image quality 0-100; For PNG: sets compression level (leftmost digit 0 fastest, 9 best)
AUTOWIDTH = True # Check for browser width using javascript
@@ -265,7 +265,7 @@ if sys.platform.startswith('linux') or sys.platform.startswith('freebsd'):
if AUTOWIDTH:
httpout.write("\n")
- if ISMAP == "true":
+ if ISMAP == True:
httpout.write(""
"
\n"
"\n" % (WebkitRenderer.req_map, WebkitRenderer.req_img))
@@ -278,7 +278,7 @@ if sys.platform.startswith('linux') or sys.platform.startswith('freebsd'):
for x in frame.findAllElements('a'):
turl = QUrl(web_url).resolved(QUrl(x.attribute('href'))).toString()
xmin, ymin, xmax, ymax = x.geometry().getCoords()
- if ISMAP == "true":
+ if ISMAP == True:
mapfile.write("rect %s %i,%i %i,%i\n".decode('utf-8', errors='ignore') % (turl, xmin, ymin, xmax, ymax))
else:
httpout.write("\n".decode('utf-8', errors='ignore')
% (xmin, ymin, xmax, ymax, turl, turl))
- if ISMAP != "true":
+ if ISMAP != True:
httpout.write("\n")
httpout.write("