17 lines
496 B
Lua
17 lines
496 B
Lua
|
-- ¡Ey! No uses esto. Se usó inicalmente para descargar la lista de las páginas de subtitulos, pero es bastante ineficiente. Mejor usá aria2-feeder
|
||
|
local start = tonumber(arg[1])
|
||
|
local endv = tonumber(arg[2])
|
||
|
|
||
|
if not start or not endv then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
for i = start, endv, 1 do
|
||
|
local command = "wget -nv 'https://www.subdivx.com/index.php?pg="..i.."' --header='accept-encoding: gzip, br' -O index-"..i..".htm"
|
||
|
local result = os.execute(command)
|
||
|
if not result == 0 then
|
||
|
return
|
||
|
end
|
||
|
end
|
||
|
|