Skip to content

Commit 86b5684

Browse files
authored
Merge pull request #173 from takker99:fix-youtube-thumbnail
feat(websocket): Prevent named links of youtube from being selected as the thumbnail
2 parents 6e241b1 + b590fc3 commit 86b5684

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

browser/websocket/findMetadata.ts

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const findMetadata = (
7878
return;
7979
}
8080
case "absolute": {
81+
if (node.content) return;
8182
const props = parseYoutube(node.href);
8283
if (props && props.pathType !== "list") {
8384
image ??= `https://i.ytimg.com/vi/${props.videoId}/mqdefault.jpg`;

0 commit comments

Comments
 (0)