Skip to content

Commit

Permalink
Update mpvc
Browse files Browse the repository at this point in the history
  • Loading branch information
gmt4 committed Nov 22, 2024
1 parent c9dd5cf commit cc79ed8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mpvc
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,10 @@ mpvc_get_playlist() {
{
gsub("^ *", "", url)
ytitle=url
if (url ~ "^https?:")
if (url ~ "^https?:" && url ~ "youtu.be|youtube.com|yewtu.be")
{
ytcmd=sprintf("%s ytquery \"%s\"", mpvc, url)
ytcmd | getline ytitle # TBD
#if (!ytitle) mpvc " ytquery " url | getline ytitle
ytcmd | getline ytitle
gsub("\\\\u00", "\\x", ytitle)
gsub("\\\\x22", "\x22", ytitle)
Expand Down

0 comments on commit cc79ed8

Please sign in to comment.