From fef479928e1e2bc579501f4bff5be3ce75318cd8 Mon Sep 17 00:00:00 2001 From: Ainz <60152641+AinzOwl@users.noreply.github.com> Date: Tue, 5 Sep 2023 20:06:19 +0100 Subject: [PATCH] added id to movies in slider in order to be able to link them --- dist/crawler/movies/flixhq.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/crawler/movies/flixhq.js b/dist/crawler/movies/flixhq.js index d21fe22..117a919 100644 --- a/dist/crawler/movies/flixhq.js +++ b/dist/crawler/movies/flixhq.js @@ -19,9 +19,11 @@ class FlixHQ { const image = $(el).attr('style')?.split(';')[0]; const match = image.match(sliderImageRegex); const title = $(el).find('.film-title > a').attr('title'); + const id = $(el).find('.film-title > a').attr('href'); const movieDetail = $(el).find('.sc-detail > .scd-item'); const movieGenre = $(movieDetail.get()[3]).find('a').get(); slider.push({ + id: url, image: match[1], title: title, detail: { @@ -485,4 +487,4 @@ class FlixHQ { }; } exports.default = FlixHQ; -//# sourceMappingURL=flixhq.js.map \ No newline at end of file +//# sourceMappingURL=flixhq.js.map