feat: add dailymotion support

closes #343
This commit is contained in:
dumbmoron
2024-02-21 00:50:48 +00:00
parent 77df90412b
commit a97733d257
8 changed files with 150 additions and 1 deletions

View File

@@ -59,6 +59,11 @@ export function aliasURL(url) {
url = new URL(`https://bilibili.com/_shortLink/${parts[1]}`)
}
break;
case "dai":
if (url.hostname === 'dai.ly' && parts.length === 2) {
url = new URL(`https://dailymotion.com/video/${parts[1]}`)
}
}
return url