From 2e7cf02c721ed34ef3b6c7aa30f371879fcb12bb Mon Sep 17 00:00:00 2001 From: Matt Hazinski Date: Fri, 7 Nov 2014 21:40:04 -0500 Subject: [PATCH] Update wuvt.py Don't put redundant 'DJ ' in now playing --- modules/wuvt.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/wuvt.py b/modules/wuvt.py index 58b4f8c..f927d18 100644 --- a/modules/wuvt.py +++ b/modules/wuvt.py @@ -28,8 +28,12 @@ def wuvt(phenny, input): dj = r_dj.search(djpage).group(1) if song and artist: - phenny.reply('DJ {0} is currently playing: {1} by {2}' - .format(dj.strip(), song.strip(), artist.strip())) + if dj[0:3] == 'DJ ': + phenny.reply('{0} is currently playing: {1} by {2}' + .format(dj.strip(), song.strip(), artist.strip())) + else: + phenny.reply('DJ {0} is currently playing: {1} by {2}' + .format(dj.strip(), song.strip(), artist.strip())) else: phenny.reply('Cannot connect to wuvt') wuvt.commands = ['wuvt']