better order of operations, verified functionality

This commit is contained in:
Rose Liverman 2021-09-29 13:30:38 -06:00
parent 3702be34e7
commit 8298b99fe9
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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

View File

@ -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()