node-csfd-api 2.1.1-next.0 → 2.2.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helpers/movie.helper.js +3 -5
- package/package.json +1 -1
package/helpers/movie.helper.js
CHANGED
|
@@ -126,11 +126,9 @@ const getPoster = (el) => {
|
|
|
126
126
|
};
|
|
127
127
|
exports.getPoster = getPoster;
|
|
128
128
|
const getDescriptions = (el) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
.querySelector('.body--plots .plot-full p')) === null || _a === void 0 ? void 0 : _a.textContent.trim().replace(/(\r\n|\n|\r|\t)/gm, '');
|
|
133
|
-
return plot ? [plot] : [];
|
|
129
|
+
return el
|
|
130
|
+
.querySelectorAll('.body--plots .plot-full p, .body--plots .plots .plots-item p')
|
|
131
|
+
.map((movie) => { var _a; return (_a = movie.textContent) === null || _a === void 0 ? void 0 : _a.trim().replace(/(\r\n|\n|\r|\t)/gm, ''); });
|
|
134
132
|
};
|
|
135
133
|
exports.getDescriptions = getDescriptions;
|
|
136
134
|
const parsePeople = (el) => {
|