aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-30 23:17:31 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-30 23:17:31 +0200
commit053359aaf159828bdd99bda01eb705c706e3a2ca (patch)
tree78968da10c09c5298e9f87013ed63bd0fe70d7b1
parent154163ea0a97a9afc67d031eefec153b76db6c91 (diff)
downloadxK-053359aaf159828bdd99bda01eb705c706e3a2ca.tar.gz
xK-053359aaf159828bdd99bda01eb705c706e3a2ca.tar.xz
xK-053359aaf159828bdd99bda01eb705c706e3a2ca.zip
Fix the `youtube' plugin
I hadn't read the docs throughly.
-rwxr-xr-xplugins/youtube2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/youtube b/plugins/youtube
index bbd573c..48fa824 100755
--- a/plugins/youtube
+++ b/plugins/youtube
@@ -18,7 +18,7 @@ sys.stdout = io.TextIOWrapper (sys.__stdout__.buffer,
encoding = 'iso8859-1', newline = '\r\n', line_buffering = True)
re_msg = re.compile ('(?::([^! ]*)(?:!([^@]*)@([^ ]*))? +)?'
- '([^ ]+)(?: +(.*))?\n$')
+ '([^ ]+)(?: +(.*))?\r\n$')
re_args = re.compile (':?((?<=:).*|[^ ]+) *')
def parse (line):