fix(route): video previews for JAVLibrary (#9182)

This commit is contained in:
Ethan Shen
2022-02-23 20:19:37 +08:00
committed by GitHub
parent 5c694e35b3
commit f1c53d15e2
+1 -1
View File
@@ -77,7 +77,7 @@ module.exports = {
thumbs: content('.previewthumbs img')
.toArray()
.map((img) => content(img).attr('src').replace(/-/g, 'jp-')),
videos: [...new Set(detailResponse.data.match(/(http[\w\d:/]+\.mp4)/g))],
videos: [...new Set(detailResponse.data.match(/(http[^[\]"]+\.mp4)/g))],
});
item.pubDate = item.pubDate.toString() === 'Invalid Date' ? parseDate(content('#video_date').find('.text').text()) : item.pubDate;