Added shorts embedding support
This commit is contained in:
		
							parent
							
								
									cc9fc0eeaf
								
							
						
					
					
						commit
						ee11cde835
					
				| @ -193,7 +193,7 @@ def embed_youtube(text): | |||||||
|                 "www.youtube-nocookie.com", |                 "www.youtube-nocookie.com", | ||||||
|                 "youtube-nocookie.com", |                 "youtube-nocookie.com", | ||||||
|             ] |             ] | ||||||
|             and any(url.path.startswith(p) for p in ["/watch", "/embed"]) |             and any(url.path.startswith(p) for p in ["/watch", "/embed", "/shorts"]) | ||||||
|         ): |         ): | ||||||
|             queries = parse_qs(url.query) |             queries = parse_qs(url.query) | ||||||
|             if "v" in queries: |             if "v" in queries: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 BordedDev
						BordedDev