things
This commit is contained in:
parent
bc942a3432
commit
5d450a90da
4
invyt.nu
4
invyt.nu
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
|
|
||||||
def main [url: string, --return(-r)] {
|
def main [url: string
|
||||||
|
, --return(-r) # Returns given url as YouTube url
|
||||||
|
] {
|
||||||
let parsed_url = $url | url parse
|
let parsed_url = $url | url parse
|
||||||
|
|
||||||
let yt_url = if ($parsed_url.path | str contains '/watch') {
|
let yt_url = if ($parsed_url.path | str contains '/watch') {
|
||||||
|
|
Loading…
Reference in a new issue