Add type to getYouTubeVideoID

This commit is contained in:
Ajay Ramachandran
2021-06-11 17:55:24 -04:00
parent 8d9b6e8c1e
commit 29b29e3f6e

View File

@@ -735,7 +735,7 @@ async function getVideoInfo(): Promise<void> {
}
}
function getYouTubeVideoID(url: string) {
function getYouTubeVideoID(url: string): string | boolean {
// For YouTube TV support
if(url.startsWith("https://www.youtube.com/tv#/")) url = url.replace("#", "");