luaplaylist/lelombrik.lua \
luaplaylist/youtube.lua \
luaplaylist/youtube_homepage.lua \
+ luaplaylist/megavideo.lua \
luaplaylist/metacafe.lua \
luaplaylist/googlevideo.lua \
luaintf/http.lua \
xml = ""
while line do
-- buffer the full xml
- xml = xml .. line
+ xml = xml .. line .. '\n'
line = vlc.readline()
end
-- now gets the encoded url
i = 1
while s:byte(i) do
c = s:byte(i)
- if c % 4 < 2 then
- if c < 16 and c > 3 then key = 61
- elseif c < 96 and c > 67 then key = 189
- elseif c < 20 and c > 6 then key = 65
- else vlc.msg_err("Oops, please report URL to developers")
- end
- else
- if c < 16 and c > 3 then key = 65
- elseif c < 96 and c > 67 then key = 193
- elseif c < 20 and c > 6 then key = 65
- else vlc.msg_err("Oops, please report URL to developers")
- end
+ if c % 4 < 2 then mod = 0 else mod = 4 end
+ if c < 16 and c > 3 then key = 61 + mod
+ elseif c < 96 and c > 67 then key = 189 + mod
+ elseif c < 20 and c > 6 then key = 65
+ else vlc.msg_err("Oops, please report URL to developers")
end
i = i + 1
path = path .. string.char(key - c)
end
if path then break end
end
- print( path )
if path then
return { { path = path } }
else