mirror of
https://github.com/TangentFoxy/FindingMusic.git
synced 2024-11-17 23:14:21 +00:00
better order of operations, verified functionality
This commit is contained in:
parent
3702be34e7
commit
8298b99fe9
File diff suppressed because one or more lines are too long
@ -35,8 +35,8 @@ for line in file:lines() do
|
|||||||
else
|
else
|
||||||
line = line:gsub("%s", "+"):gsub("&", "&")
|
line = line:gsub("%s", "+"):gsub("&", "&")
|
||||||
end
|
end
|
||||||
os.execute("open \"https://google.com/search?q=" .. line .. "\"")
|
|
||||||
-- appeared to overstress my server opening so many tabs at once, so I removed this
|
-- appeared to overstress my server opening so many tabs at once, so I removed this
|
||||||
-- os.execute("open \"https://funkwhale.tangentfox.com/search?q=" .. line .. "&type=tracks\"")
|
-- os.execute("open \"https://funkwhale.tangentfox.com/search?q=" .. line .. "&type=tracks\"")
|
||||||
|
os.execute("open \"https://google.com/search?q=" .. line .. "\"")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -39,10 +39,10 @@ for _,v in ipairs(results) do
|
|||||||
else
|
else
|
||||||
track = track:gsub("%s", "+"):gsub("&", "&")
|
track = track:gsub("%s", "+"):gsub("&", "&")
|
||||||
end
|
end
|
||||||
os.execute("open \"https://google.com/search?q=" .. track .. "\"")
|
|
||||||
if funkwhale then
|
if funkwhale then
|
||||||
os.execute("open \"https://funkwhale.tangentfox.com/search?q=" .. track .. "&type=tracks\"")
|
os.execute("open \"https://funkwhale.tangentfox.com/search?q=" .. track .. "&type=tracks\"")
|
||||||
end
|
end
|
||||||
|
os.execute("open \"https://google.com/search?q=" .. track .. "\"")
|
||||||
end
|
end
|
||||||
music.set(results, {searched = true})
|
music.set(results, {searched = true})
|
||||||
music.save()
|
music.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user