proc directPlay*(url: string, player: string, options: Table[string, bool]) =
let url =
if find(url, PEERTUBE_REGEX) != -1 and "webtorrent".isInstalled:
proc directPlay*(url: string, player: string, options: Table[string, bool]) =
let url =
if find(url, PEERTUBE_REGEX) != -1 and "webtorrent".isInstalled:
discard execProcess("webtorrent", args=[url, &"--{player}"], options=processOptions)
else:
play(player, options, url)
discard execProcess("webtorrent", args=[url, &"--{player}"], options=processOptions)
else:
play(player, options, url)