Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed reddit#55

  • Loading branch information...
commit d0b285e9fdc38f6291cfc822133ddf00a63acefc 1 parent e992c16
@andre-d andre-d authored spladug committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 r2/r2/lib/utils/utils.py
View
6 r2/r2/lib/utils/utils.py
@@ -246,12 +246,12 @@ def get_title(url):
if not bs:
return
- title_bs = bs.first('title')
+ title_bs = bs.html.head.title
- if not title_bs or title_bs.children:
+ if not title_bs or not title_bs.string:
return
- return title_bs.text.encode('utf-8')
+ return title_bs.string.encode('utf-8')
except:
return None
Please sign in to comment.
Something went wrong with that request. Please try again.