From 1810447e284a32b34c61df2516e4176a1465bfc2 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Mon, 16 Mar 2009 18:58:19 -0600 Subject: [PATCH] disabling youtube plugin for now --- plugins/youtube.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/youtube.py b/plugins/youtube.py index 32fafab..5c438c3 100644 --- a/plugins/youtube.py +++ b/plugins/youtube.py @@ -31,7 +31,7 @@ def ytdata(id): youtube_re = re.compile(r'.*youtube.*v=([-_a-z0-9]+)', flags=re.IGNORECASE) -@hook.command(hook=r'(.*)', prefix=False) +#@hook.command(hook=r'(.*)', prefix=False) def youtube(inp): m = youtube_re.match(inp) if m: @@ -39,7 +39,3 @@ def youtube(inp): return '\x02%(title)s\x02 - rated \x02%(average)s/%(max)s\x02 ' \ '(%(numRaters)s) - views \x02%(views)s\x02 - length \x02' \ '%(length)s\x02' % data - -if __name__ == '__main__': - print ytdata('the0KZLEacs') - print ytdata('Ct8nZ6eTTiY')