v3: follows, notifications, invite-only registration, unread markers
This commit is contained in:
@@ -30,7 +30,9 @@ export const soundcloudProvider: RichContentProvider = {
|
||||
title: extractOgTag(html, "title"),
|
||||
description: extractOgTag(html, "description"),
|
||||
thumbnailUrl: extractOgTag(html, "image"),
|
||||
embedUrl: `https://w.soundcloud.com/player/?url=${encodeURIComponent(url)}&visual=true&auto_play=false`,
|
||||
embedUrl: `https://w.soundcloud.com/player/?url=${
|
||||
encodeURIComponent(url)
|
||||
}&visual=true&auto_play=false`,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -12,7 +12,9 @@ function extractVideoId(url: string): string | null {
|
||||
if (u.pathname === "/watch" || u.pathname.startsWith("/watch?")) {
|
||||
return u.searchParams.get("v");
|
||||
}
|
||||
if (u.pathname.startsWith("/embed/") || u.pathname.startsWith("/shorts/")) {
|
||||
if (
|
||||
u.pathname.startsWith("/embed/") || u.pathname.startsWith("/shorts/")
|
||||
) {
|
||||
return u.pathname.split("/")[2] || null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user