Fix a typo in the url

This commit is contained in:
Hongbo Wu
2023-03-10 18:27:58 +08:00
parent 687771f676
commit 29776359f2

View File

@ -52,7 +52,7 @@ export class YoutubeHandler extends ContentHandler {
return {}
}
urlToEncode = `${BaseUrl}/watch?v=${videoId}`
src = `${embedBaseUrl}/embed/${videoId}`
src = `${embedBaseUrl}/${videoId}`
}
const oembedUrl =
@ -65,7 +65,6 @@ export class YoutubeHandler extends ContentHandler {
thumbnail_url: string
author_name: string
author_url: string
provider_name: string
}
// escape html entities in title
const title = oembed.title