mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
5.1.2
- added women's day celebration emoji - fixed vk user id extraction
This commit is contained in:
@ -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' };
|
||||
|
@ -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": {
|
||||
|
Reference in New Issue
Block a user