aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shu Lin <[email protected]>2021-12-25 20:54:30 +0900
committerGitHub <[email protected]>2021-12-25 20:54:30 +0900
commit1f26ed8b33da2bd965dc55abfbb84529ab494c24 (patch)
treeb4624d77ecc87e932369ca6cb441669cd9d44aae
parentchore(ci): change build triggers (diff)
downloadholo-schedule-1f26ed8b33da2bd965dc55abfbb84529ab494c24.tar.xz
holo-schedule-1f26ed8b33da2bd965dc55abfbb84529ab494c24.zip
fix: hanlde live image not from youtube (#26)
-rw-r--r--src/parseScheduleHtml.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parseScheduleHtml.ts b/src/parseScheduleHtml.ts
index 728991b..3321475 100644
--- a/src/parseScheduleHtml.ts
+++ b/src/parseScheduleHtml.ts
@@ -15,7 +15,9 @@ function dataFromAThumbnail(thumb: Element) {
)
const avatarImages = images.filter((src) => src.startsWith('https://yt3.ggpht.com'))
- const livePreviewImage = images.find(src => src.startsWith('https://img.youtube.com/')) || ''
+ const livePreviewImage = images.find(src => src.startsWith('https://img.youtube.com/')) ||
+ images.find(src => src.startsWith('https://schedule-static.hololive.tv/image/')) ||
+ ''
return {
time,