Handle playlists as well
This commit is contained in:
parent
f5935177a8
commit
d53dd31a76
4
invyt.nu
4
invyt.nu
|
@ -3,7 +3,9 @@
|
|||
def parse_url [url: string] {
|
||||
let parsed_url = $url | url parse
|
||||
|
||||
if ($parsed_url.path | str contains '/watch') {
|
||||
let correct_string = ($parsed_url.path | grep -E "(playlist|watch)" | complete).exit_code
|
||||
|
||||
if ($correct_string == 0) {
|
||||
if $parsed_url.host != "youtube.com" {
|
||||
$url | str replace $parsed_url.host "youtube.com"
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue