music: me when capitalization matters for tags
This commit is contained in:
		
							parent
							
								
									0ed2bb99c3
								
							
						
					
					
						commit
						850b65b19f
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -250,8 +250,12 @@ async function enqueue(
 | 
			
		|||
 | 
			
		||||
    if (info.tags) {
 | 
			
		||||
      title = `${
 | 
			
		||||
        info.tags.artist ?? info.tags.album_artist ?? "<unknown artist>"
 | 
			
		||||
      } - ${info.tags.title ?? "<no title>"}`;
 | 
			
		||||
        info.tags.artist ??
 | 
			
		||||
        info.tags.ARTIST ??
 | 
			
		||||
        info.tags.album_artist ??
 | 
			
		||||
        info.tags.ALBUM_ARTIST ??
 | 
			
		||||
        "<unknown artist>"
 | 
			
		||||
      } - ${info.tags.title ?? info.tags.TITLE ?? "<no title>"}`;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    length = info.duration ? Math.floor(info.duration) * 1000 : 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue