From b5746390cd24c1df6fcc0ac06c8108fcf16dfb5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Mon, 19 Jul 2010 22:25:14 +0200 Subject: [PATCH] lelombrik: fix title encoding. --- share/lua/playlist/lelombrik.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/lua/playlist/lelombrik.lua b/share/lua/playlist/lelombrik.lua index b804bacece..5de87d8c43 100644 --- a/share/lua/playlist/lelombrik.lua +++ b/share/lua/playlist/lelombrik.lua @@ -37,6 +37,9 @@ function parse() if string.match( line, "id=\"nom_fichier\">" ) then title = string.gsub( line, ".*\"nom_fichier\">([^<]*).*", "%1" ) + if title then + title = vlc.strings.iconv( "UTF8", "ISO_8859-1", title ) + end elseif string.match( line, "'file'" ) then _,_,path = string.find( line, "'file', *'([^']*)") elseif string.match( line, "flashvars=" ) then -- 2.39.2