updated readme and fixed some things

This commit is contained in:
wukko
2022-12-17 17:22:39 +06:00
parent 7f1ba6b36b
commit 13c2884a41
9 changed files with 34 additions and 31 deletions

View File

@@ -4,7 +4,7 @@ export default async function(obj) {
try {
let html = await fetch(`https://bilibili.com/video/${obj.id}`, {
headers: {"user-agent": genericUserAgent}
}).then(async (r) => {return r.text()}).catch(() => {return false});
}).then((r) => {return r.text()}).catch(() => {return false});
if (!html) return { error: 'ErrorCouldntFetch' };
if (html.includes('<script>window.__playinfo__=') && html.includes('"video_codecid"')) {