diff --git a/src/gameservers/data_sources.py b/src/gameservers/data_sources.py index 272848d..42dd70c 100644 --- a/src/gameservers/data_sources.py +++ b/src/gameservers/data_sources.py @@ -132,14 +132,14 @@ class ServerScraper(object): # server title), we give them The Boot. return - # HACK: In case the server title is encased in extra tags, - # simply grab the second matching tag and use only that as title - # TODO: What if there's multiple tags all over the data? - tmp = data.find('b') - if tmp.find_all('b'): - tmp = tmp.find('b') - try: + # HACK: In case the server title is encased in extra tags, + # simply grab the second matching tag and use only that as title + # TODO: What if there's multiple tags all over the data? + tmp = data.find('b') + if tmp.find_all('b'): + tmp = tmp.find('b') + title = tmp.get_text().splitlines()[0].strip().encode('utf-8') except AttributeError: # HACK: I think this happends because the raw data was incomplete.