Skip to content

Commit 6c4b7f7

Browse files
committed
👍 サムネイル取得に新しい解析函数を使う
1 parent 80753fd commit 6c4b7f7

File tree

2 files changed

+2
-76
lines changed

2 files changed

+2
-76
lines changed

browser/websocket/makeChanges.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import type { Change } from "../../deps/socket.ts";
1111
import type { HeadData } from "./pull.ts";
1212
import { toTitleLc } from "../../title.ts";
13-
import { parseYoutube } from "../../parseYoutube.ts";
13+
import { parseYoutube } from "../../parser/youtube.ts";
1414

1515
export interface Init {
1616
userId: string;
@@ -95,7 +95,7 @@ const findLinksAndImage = (text: string): [string[], string | null] => {
9595
return;
9696
case "absolute": {
9797
const props = parseYoutube(node.href);
98-
if (!props) return;
98+
if (!props || props.pathType === "list") return;
9999
image ??= `https://i.ytimg.com/vi/${props.videoId}/mqdefault.jpg`;
100100
return;
101101
}

parseYoutube.ts

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)