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

@@ -24,6 +24,7 @@ import pinterest from "./services/pinterest.js";
import streamable from "./services/streamable.js";
import twitch from "./services/twitch.js";
import rutube from "./services/rutube.js";
import dailymotion from "./services/dailymotion.js";
export default async function(host, patternMatch, url, lang, obj) {
assert(url instanceof URL);
@@ -156,6 +157,9 @@ export default async function(host, patternMatch, url, lang, obj) {
isAudioOnly: isAudioOnly
});
break;
case "dailymotion":
r = await dailymotion(patternMatch);
break;
default:
return apiJSON(0, { t: errorUnsupported(lang) });
}