1 const child = require("child_process")
2 const fzf = require("./fzf")
3 const info = require("./info")
6 const doujins = await info.doujins()
7 const tags = await info.tags()
11 try { tag = await fzf(Object.keys(tags).sort()) } catch { return }
12 try { doujin = await fzf(Object.values(tags[tag]).sort(), __dirname + "/fzf-previews") } catch {}
15 child.spawn("firefox", [`file://${process.cwd()}/${doujin}/index.html`])