diff --git a/lib/routes/zcool/discover.js b/lib/routes/zcool/discover.js index f17c18df29..bf7cf0097c 100644 --- a/lib/routes/zcool/discover.js +++ b/lib/routes/zcool/discover.js @@ -57,6 +57,7 @@ module.exports = async (ctx) => { } queries.limit = '20'; queries.page = '1'; + } else { switch (query) { case 'home': @@ -116,15 +117,16 @@ module.exports = async (ctx) => { const videos = detailResponse.data.match(/source: '(https:\/\/video\.zcool\.cn\/.*)',/g); - let i = 0; - content('.video-content-box').each(function () { - if (i >= videos.length) { - return; - } - content(this).append(`