Add additional guard for directPlay

Signed-off-by: Joseph Nuthalapati's avatarJoseph Nuthalapati <[email protected]>
parent ba35766a
Pipeline #105472340 passed with stage
in 58 seconds
......@@ -81,7 +81,8 @@ proc main() =
player = selectMediaPlayer()
(searchQuery, musicOnly, feelingLucky) = parseOptions()
directPlay(searchQuery, player)
if searchQuery.startswith("https:") or searchQuery.startswith("magnet:"):
directPlay(searchQuery, player)
let searchResults = extractTitlesAndUrls(getYoutubePage(searchQuery))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment