Skip to content

Commit

Permalink
YT `live' URL support
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Grahn committed Aug 19, 2024
1 parent b38a794 commit 8b0126b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ var queryYT=function(qu){
}
else if(qu.match(/youtu\.be\/|youtube(?:-nocookie)?\..*/)){
//regular YT url with video id and/or list id or playlist
vid=qu.match(/(?<=youtu\.be\/|\/embed\/|\/v\/|[?&]v=)[0-9a-zA-Z_-]{11}/);
vid=qu.match(/(?<=youtu\.be\/|\/embed\/|\/live\/|\/v\/|[?&]v=)[0-9a-zA-Z_-]{11}/);
if(vid) vid="vid:"+vid[0];
else{//try with index into list
vid=qu.match(/(?<=[?&]index=)[0-9]+/);
Expand Down
Binary file modified zip/ABLoopPlayer.zip
Binary file not shown.

0 comments on commit 8b0126b

Please sign in to comment.