]> jfr.im git - erebus.git/commitdiff
Added 'Title:' to general title checker
authorConny Sjöblom <redacted>
Wed, 19 Feb 2014 22:41:07 +0000 (00:41 +0200)
committerConny Sjöblom <redacted>
Wed, 19 Feb 2014 22:41:07 +0000 (00:41 +0200)
modules/urls.py

index 5fc10a8c7c48a53b8906cdad0092bda1b5be0cb0..c6d939f2a712bd61abe5c962bbd55aaf1e657078 100644 (file)
@@ -151,6 +151,6 @@ def gottwitch(uri):
 def goturl(url):
        try:
                soup = BeautifulSoup(urllib2.urlopen(url))
-               return soup.title.string
+               return "Title: %s" % soup.title.string
        except:
-               return "Bad URL"
\ No newline at end of file
+               return "Bad URL"