Commit d36e4117 authored by Pierre's avatar Pierre
Browse files

frenchtv.lua: Make sure we handle channels name like "XXX HD" or "XXX (bas débit)"

parent 09049343
...@@ -41,6 +41,12 @@ function fetch_art() ...@@ -41,6 +41,12 @@ function fetch_art()
channel = meta["filename"] channel = meta["filename"]
end end
-- Replace "France 2 HD" by "France 2"
channel = string.gsub(channel, "^(.-)%sHD%s*$", "%1")
-- Replace "France 2 (bas débit)" by "France 2"
channel = string.gsub(channel, "^(.-)%s%(bas débit%)%s*$", "%1")
-- trim -- trim
channel = string.gsub(channel, "^%s*(.-)%s*$", "%1") channel = string.gsub(channel, "^%s*(.-)%s*$", "%1")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment