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

@@ -1,4 +1,5 @@
import { genericUserAgent } from "../config.js";
import { vkClientAgent } from "../processing/services/vk.js";
const defaultHeaders = {
'user-agent': genericUserAgent
@@ -13,6 +14,9 @@ const serviceHeaders = {
origin: 'https://www.youtube.com',
referer: 'https://www.youtube.com',
DNT: '?1'
},
vk: {
'user-agent': vkClientAgent
}
}