New video embedding
This commit is contained in:
		
							parent
							
								
									2582df360a
								
							
						
					
					
						commit
						656ea5f90e
					
				@ -91,7 +91,7 @@ def embed_youtube(text):
 | 
			
		||||
    for element in soup.find_all("a"):
 | 
			
		||||
        if (
 | 
			
		||||
            element.attrs["href"].startswith("https://www.you")
 | 
			
		||||
            and "v=" in element.attrs["href"] or "si=" in element.attrs["href"]
 | 
			
		||||
            and ("v=" in element.attrs["href"] or "si=" in element.attrs["href"])
 | 
			
		||||
        ):
 | 
			
		||||
            video_name = None 
 | 
			
		||||
            if "v=" in element.attrs["href"]:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user