mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复ins部分问题
This commit is contained in:
parent
fa09519b34
commit
586fdfe10c
@ -887,8 +887,10 @@ export class tools extends plugin {
|
||||
};
|
||||
await fetch(API).then(async resp => {
|
||||
const html = await resp.text();
|
||||
const desc = html.match(/(?<=content=").*?(?=\")/g)?.[2];
|
||||
const images = html.match(/<div class=\"swiper-slide.*?\">/g);
|
||||
if (!_.isNull(images)) {
|
||||
e.reply(`识别:Insta,${desc || "暂无描述"}\n`)
|
||||
images.map((item, index) => {
|
||||
const imgUrl = /(?<=data-src=").*?(?=")/
|
||||
.exec(item)[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user