Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
aewens | a6ae1c5ce5 |
2
bot.py
2
bot.py
|
@ -9,7 +9,7 @@ SOTDS = datastore.DataStore("sotd.json")
|
|||
def get_title(link):
|
||||
title = str(urlopen(link).read()).split("<title>", 1)[1].split("</title>", 1)[0]
|
||||
if "YouTube" in title:
|
||||
return title.split(" - Youtube", 1)[0]
|
||||
return title.split(" - YouTube", 1)[0]
|
||||
return title
|
||||
|
||||
class SOTDBot(teambot.Handler,teambot.CommandHandlerMixin):
|
||||
|
|
Reference in New Issue