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
|
||||
line = line:gsub("%s", "+"):gsub("&", "&")
|
||||
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
|
||||
-- os.execute("open \"https://funkwhale.tangentfox.com/search?q=" .. line .. "&type=tracks\"")
|
||||
os.execute("open \"https://google.com/search?q=" .. line .. "\"")
|
||||
end
|
||||
end
|
||||
|
@ -39,10 +39,10 @@ for _,v in ipairs(results) do
|
||||
else
|
||||
track = track:gsub("%s", "+"):gsub("&", "&")
|
||||
end
|
||||
os.execute("open \"https://google.com/search?q=" .. track .. "\"")
|
||||
if funkwhale then
|
||||
os.execute("open \"https://funkwhale.tangentfox.com/search?q=" .. track .. "&type=tracks\"")
|
||||
end
|
||||
os.execute("open \"https://google.com/search?q=" .. track .. "\"")
|
||||
end
|
||||
music.set(results, {searched = true})
|
||||
music.save()
|
||||
|
Loading…
Reference in New Issue
Block a user