Include featured label artist

This commit is contained in:
patrickkfkan 2021-01-24 05:54:09 +08:00
parent eb64ea9c96
commit 9645bf0cc7

View File

@ -457,14 +457,14 @@ function parseArtistOrLabelInfo(html, opts) {
function parseLabelArtists(html, opts) {
const $ = cheerio.load(html);
const artistsList = $('li.artists-grid-item');
const artistsList = $('li.featured-item, li.artists-grid-item');
const results = [];
artistsList.each( (index, artistListItem) => {
artistListItem = $(artistListItem);
const img = artistListItem.find('img');
const imgSrc = img.attr('data-original') || img.attr('src');
const artist = {
name: artistListItem.find('.artists-grid-name').text(),
name: artistListItem.find('.featured-grid-name, .artists-grid-name').text(),
url: utils.splitUrl(artistListItem.find('a').attr('href')).base,
location: artistListItem.find('.artists-grid-location').text(),
imageUrl: utils.reformatImageUrl(imgSrc, opts.imageFormat)