Fix the `youtube' plugin

I hadn't read the docs throughly.
This commit is contained in:
Přemysl Eric Janouch 2014-07-30 23:17:31 +02:00
parent 154163ea0a
commit 053359aaf1

View File

@ -18,7 +18,7 @@ sys.stdout = io.TextIOWrapper (sys.__stdout__.buffer,
encoding = 'iso8859-1', newline = '\r\n', line_buffering = True) encoding = 'iso8859-1', newline = '\r\n', line_buffering = True)
re_msg = re.compile ('(?::([^! ]*)(?:!([^@]*)@([^ ]*))? +)?' re_msg = re.compile ('(?::([^! ]*)(?:!([^@]*)@([^ ]*))? +)?'
'([^ ]+)(?: +(.*))?\n$') '([^ ]+)(?: +(.*))?\r\n$')
re_args = re.compile (':?((?<=:).*|[^ ]+) *') re_args = re.compile (':?((?<=:).*|[^ ]+) *')
def parse (line): def parse (line):