From 44f0064b42db4a343dd59fa1cfa2f7e311230c93 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Thu, 6 Feb 2020 23:52:00 +0100 Subject: [PATCH] Cleaned up Gamma profile scraper. --- src/scrapers/gamma.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scrapers/gamma.js b/src/scrapers/gamma.js index 0c224628..a0590b96 100644 --- a/src/scrapers/gamma.js +++ b/src/scrapers/gamma.js @@ -237,9 +237,8 @@ function scrapeActorSearch(html, url, actorName) { return actorLink ? actorLink.href : null; } -function scrapeProfile(html, url, actorName, siteSlug) { - const { document } = new JSDOM(html).window; - const { q, qu } = ex(html); +function scrapeProfile(html, url, actorName, _siteSlug) { + const { q } = ex(html); const avatar = q('img.actorPicture'); const hair = q('.actorProfile .attribute_hair_color', true);