From fae0c03a448933dfc4c46d35ce4341d4b9e8e200 Mon Sep 17 00:00:00 2001 From: KotoriK <52659125+KotoriK@users.noreply.github.com> Date: Sun, 8 Nov 2020 09:18:39 +0800 Subject: [PATCH] fix: router 'google album' (#6099) --- lib/routes/google/album.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/google/album.js b/lib/routes/google/album.js index 6ff1fb258..6eb9d469a 100644 --- a/lib/routes/google/album.js +++ b/lib/routes/google/album.js @@ -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.*?data:(\[[\s\S]{10,}?\])\n}\);/m)[1]) || []; + const info = JSON.parse(response.data.match(/AF_initDataCallback.*?data:(\[[\s\S]*\])\s/m)[1]) || []; const album_name = info[3][1]; const owner_name = info[3][5][2];