fix: size of page for show url title
This commit is contained in:
@@ -133,7 +133,7 @@ def get_content_title(link):
|
|||||||
for t in url_watch_ignore:
|
for t in url_watch_ignore:
|
||||||
if ll.endswith('.%s' % t): raise
|
if ll.endswith('.%s' % t): raise
|
||||||
link = enidna(link)
|
link = enidna(link)
|
||||||
original_page = load_page_size(urllib2.Request(link),8192)
|
original_page = load_page_size(urllib2.Request(link),16384)
|
||||||
page = html_encode(original_page)
|
page = html_encode(original_page)
|
||||||
if '<title' in page: tag = 'title'
|
if '<title' in page: tag = 'title'
|
||||||
elif '<TITLE' in page: tag = 'TITLE'
|
elif '<TITLE' in page: tag = 'TITLE'
|
||||||
|
|||||||
Reference in New Issue
Block a user