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.
@@ -126,11 +126,9 @@ const getPoster = (el) => {
126
126
  };
127
127
  exports.getPoster = getPoster;
128
128
  const getDescriptions = (el) => {
129
- var _a;
130
- // TODO more plots
131
- const plot = (_a = el
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-csfd-api",
3
- "version": "2.1.1-next.0",
3
+ "version": "2.2.0-next.0",
4
4
  "description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)",
5
5
  "main": "./index.js",
6
6
  "author": "BART! <bart@bartweb.cz>",