- added women's day celebration emoji
- fixed vk user id extraction
This commit is contained in:
wukko
2023-03-08 13:17:33 +06:00
parent 2884bd9081
commit daa2856d92
6 changed files with 15 additions and 6 deletions

View File

@ -24,7 +24,7 @@ const resolutionMatch = {
export default async function(o) {
let html;
html = await fetch(`https://vk.com/video-${o.userId}_${o.videoId}`, {
html = await fetch(`https://vk.com/video${o.userId}_${o.videoId}`, {
headers: { "user-agent": genericUserAgent }
}).then((r) => { return r.text() }).catch(() => { return false });
if (!html) return { error: 'ErrorCouldntFetch' };

View File

@ -18,7 +18,7 @@
},
"vk": {
"alias": "vk video & clips",
"patterns": ["video-:userId_:videoId", "clip-:userId_:videoId", "clips-:duplicate?z=clip-:userId_:videoId"],
"patterns": ["video:userId_:videoId", "clip:userId_:videoId", "clips:duplicate?z=clip:userId_:videoId"],
"enabled": true
},
"youtube": {