fix URLs with playlists
This commit is contained in:
		
							parent
							
								
									574d675086
								
							
						
					
					
						commit
						0887a5fb08
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,7 @@
 | 
			
		|||
  let audioPlayer;
 | 
			
		||||
 | 
			
		||||
  function extract(url) {
 | 
			
		||||
    const match = url.match(/(youtu\.be\/|youtube\.com\/watch\?v=)([\w]+)/);
 | 
			
		||||
    const match = url.match(/(youtu\.be\/|v=)([\w]+)/);
 | 
			
		||||
    if (match) {
 | 
			
		||||
      return match[2];
 | 
			
		||||
    } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue