mirror of
https://github.com/tenox7/wrp.git
synced 2025-01-03 07:29:37 +00:00
Correct title working.
This commit is contained in:
parent
762a3822f7
commit
4fefe187cd
3
wrp.py
3
wrp.py
@ -240,8 +240,8 @@ if sys.platform == "linux" or sys.platform == "linux2":
|
|||||||
% (__version__))
|
% (__version__))
|
||||||
httpout.write("<!-- Request for [%s] frame [%s] -->\n"
|
httpout.write("<!-- Request for [%s] frame [%s] -->\n"
|
||||||
% (WebkitRenderer.req_url, web_url))
|
% (WebkitRenderer.req_url, web_url))
|
||||||
httpout.write("<HTML><HEAD>")
|
|
||||||
# Get title
|
# Get title
|
||||||
|
httpout.write("<HTML><HEAD>")
|
||||||
for ttl in frame.findAllElements('title'):
|
for ttl in frame.findAllElements('title'):
|
||||||
httpout.write((u"<TITLE>%s</TITLE>"
|
httpout.write((u"<TITLE>%s</TITLE>"
|
||||||
% ttl.toPlainText()).encode('utf-8', errors='ignore'))
|
% ttl.toPlainText()).encode('utf-8', errors='ignore'))
|
||||||
@ -541,6 +541,7 @@ elif sys.platform == "darwin":
|
|||||||
httpout.write("<!-- Request for [%s] frame [%s] -->\n"
|
httpout.write("<!-- Request for [%s] frame [%s] -->\n"
|
||||||
% (WebkitLoad.req_url, web_url))
|
% (WebkitLoad.req_url, web_url))
|
||||||
# Get title
|
# Get title
|
||||||
|
httpout.write("<HTML><HEAD>")
|
||||||
for ttl in frame.findAllElements('title'):
|
for ttl in frame.findAllElements('title'):
|
||||||
httpout.write((u"<TITLE>%s</TITLE>"
|
httpout.write((u"<TITLE>%s</TITLE>"
|
||||||
% ttl.toPlainText()).encode('utf-8', errors='ignore'))
|
% ttl.toPlainText()).encode('utf-8', errors='ignore'))
|
||||||
|
Loading…
Reference in New Issue
Block a user