api/vk: use proper api, add support for more links, refactor

also added support for video access keys
This commit is contained in:
wukko
2024-11-28 16:01:26 +06:00
parent 5ffc0c6161
commit f696335278
5 changed files with 134 additions and 41 deletions

View File

@@ -77,8 +77,9 @@ export default async function({ host, patternMatch, params }) {
case "vk":
r = await vk({
userId: patternMatch.userId,
ownerId: patternMatch.ownerId,
videoId: patternMatch.videoId,
accessKey: patternMatch.accessKey,
quality: params.videoQuality
});
break;