fix: update google album regex (#5089)
This commit is contained in:
parent
1c6fe588d7
commit
16ff4a1c2c
|
|
@ -9,7 +9,7 @@ module.exports = async (ctx) => {
|
|||
|
||||
const real_url = response.request.options.url.href;
|
||||
|
||||
const info = JSON.parse(response.data.match(/AF_initDataCallback.*?return ([\s\S]*?)}}\)/m)[1]) || [];
|
||||
const info = JSON.parse(response.data.match(/AF_initDataCallback.*?data:(\[[\s\S]{10,}?\])\n}\);/m)[1]) || [];
|
||||
|
||||
const album_name = info[3][1];
|
||||
const owner_name = info[3][5][2];
|
||||
|
|
|
|||
Loading…
Reference in New Issue