From bdfd4a99ed2a6a6784acf3f5808bedf6debf75af Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Tue, 5 Jul 2016 22:34:16 +0200 Subject: [PATCH] =?UTF-8?q?YouTube:=20Fixe=20das=20"tanze=20M=C3=A4nnchen"?= =?UTF-8?q?=20im=20Titel=20(\[\])?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/youtube.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/otouto/plugins/youtube.lua b/otouto/plugins/youtube.lua index 7877b09..87fa590 100644 --- a/otouto/plugins/youtube.lua +++ b/otouto/plugins/youtube.lua @@ -79,7 +79,9 @@ local function convertISO8601Time(duration) end function send_youtube_data(data, msg, self, link, sendpic) - local title = utilities.md_escape(data.snippet.localized.title) + local title = data.snippet.localized.title + local title = title:gsub('%*', '\\*') + local title = title:gsub('`', '\\`') -- local description = data.snippet.localized.description local uploader = data.snippet.channelTitle local upload_date = makeOurDate(data.snippet.publishedAt)