diff --git a/lib/routes/dribbble/utils.js b/lib/routes/dribbble/utils.js index 069995907b..d7c40e1d17 100644 --- a/lib/routes/dribbble/utils.js +++ b/lib/routes/dribbble/utils.js @@ -6,7 +6,17 @@ async function load(link) { const response = await got.get(link); const $ = cheerio.load(response.data); - const shotMedia = $('.media-shot').html() || $('.main-shot').html() || ''; + const shotMedia = $('.media-shot,.main-shot') // join multiple shots together + .toArray() + .map((element) => { + const object = $(element); + + // remove the content that we don't want to show + object.find('span.cropped-indicator').remove(); + + return object.html(); + }) + .join(''); const shotDescription = $('.shot-desc').html() || ''; const shotViews = $('.shot-views').text() || '0 views';