From 226ee4e34eece827a5fc91389fb144b0b46c63fc Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 11 Oct 2017 08:03:05 +0200 Subject: [PATCH] ctfs: update module reflecting site changes --- modules/ctfs.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/ctfs.py b/modules/ctfs.py index 169ee46..ac27c4a 100644 --- a/modules/ctfs.py +++ b/modules/ctfs.py @@ -25,10 +25,8 @@ def get_info_yt(msg): for line in soup.body.find_all('tr'): n = line.find_all('td') - if len(n) == 5: - try: - res.append_message("\x02%s:\x0F from %s type %s at %s. %s" % - tuple([striphtml(x.text) for x in n])) - except: - pass + if len(n) == 7: + res.append_message("\x02%s:\x0F from %s type %s at %s. Weight: %s. %s%s" % + tuple([striphtml(x.text).strip() for x in n])) + return res