Changed method of adding http:// sot URLS
This commit is contained in:
parent
240440ac13
commit
36dcf308d3
2 changed files with 2 additions and 4 deletions
|
@ -8,7 +8,7 @@ def get_title(url):
|
|||
url = urlnorm.normalize(url.encode('utf-8'))
|
||||
url = url.decode('utf-8')
|
||||
# add http if its missing
|
||||
if not url.startswith("http"):
|
||||
if not "://" in url:
|
||||
url = "http://" + url
|
||||
try:
|
||||
# get the title
|
||||
|
|
Reference in a new issue