music: move channel name to description on youtube search
This commit is contained in:
		
							parent
							
								
									c116ed2dc8
								
							
						
					
					
						commit
						c48880ff4f
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
					@ -365,11 +365,12 @@ async function youtubeSearch(msg, str) {
 | 
				
			||||||
  const selection = items.map((item) => ({
 | 
					  const selection = items.map((item) => ({
 | 
				
			||||||
    value: "https://youtu.be/" + item.id.videoId,
 | 
					    value: "https://youtu.be/" + item.id.videoId,
 | 
				
			||||||
    key: item.id.videoId,
 | 
					    key: item.id.videoId,
 | 
				
			||||||
    display:
 | 
					    display: `${item.snippet.title.substring(0, 99)}${
 | 
				
			||||||
      `"${item.snippet.title}" from ${item.snippet.channelTitle}`.substring(
 | 
					      item.snippet.title.length > 99 ? "…" : ""
 | 
				
			||||||
        0,
 | 
					    }`,
 | 
				
			||||||
        100
 | 
					    description: `from ${item.snippet.channelTitle.substring(0, 95)}${
 | 
				
			||||||
      ),
 | 
					      item.snippet.channelTitle.length > 95 ? "…" : ""
 | 
				
			||||||
 | 
					    }`,
 | 
				
			||||||
  }));
 | 
					  }));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  try {
 | 
					  try {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue