node-csfd-api 2.1.0-next.1 → 2.2.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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Build & Publish](https://github.com/bartholomej/node-csfd-api/workflows/Publish/badge.svg)](https://github.com/bartholomej/node-csfd-api/actions)
4
4
  [![codecov](https://codecov.io/gh/bartholomej/node-csfd-api/branch/master/graph/badge.svg?token=YQH9UoVrGP)](https://codecov.io/gh/bartholomej/node-csfd-api)
5
5
 
6
- # CSFD API 2021
6
+ # CSFD API 2022
7
7
 
8
8
  > JavaScript NPM library for scraping **Czech Movie Database (csfd.cz)**
9
9
  >
@@ -30,6 +30,7 @@ npm install node-csfd-api --save
30
30
  - [Movies and TV Series](#Movie)
31
31
  - [User Ratings](#User-Ratings)
32
32
  - [Search](#Search)
33
+ - [Creators](#Creators)
33
34
 
34
35
  ### Movie
35
36
 
@@ -396,7 +397,7 @@ yarn start
396
397
 
397
398
  ### Run demo locally
398
399
 
399
- You can find and modify it in [`./demo.ts`](https://raw.githubusercontent.com/bartholomej/node-csfd-api/search/demo.ts) file
400
+ You can find and modify it in [`./demo.ts`](https://github.com/bartholomej/node-csfd-api/blob/master/demo.ts) file
400
401
 
401
402
  ```bash
402
403
  yarn demo
@@ -423,9 +424,11 @@ I welcome you to customize this according to your needs ;)
423
424
 
424
425
  Pull requests for any improvements would be great!
425
426
 
426
- ## Donation
427
+ ## ⭐️ Show your support
427
428
 
428
- If this project have helped you save time please consider [making a donation](https://github.com/sponsors/bartholomej) for some 🍺 or 🍵 ;)
429
+ Give a ⭐️ if this project helped you!
430
+
431
+ Or if you are brave enough consider [making a donation](https://github.com/sponsors/bartholomej) for some 🍺 or 🍵 ;)
429
432
 
430
433
  ## Privacy Policy
431
434
 
@@ -437,7 +440,7 @@ That's why, with CSFD Api, what happens on your device stays on your device till
437
440
 
438
441
  ## License
439
442
 
440
- Copyright © 2021 [Lukas Bartak](http://bartweb.cz)
443
+ Copyright © 2022 [Lukas Bartak](http://bartweb.cz)
441
444
 
442
445
  Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)
443
446
 
@@ -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-preview 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.0-next.1",
3
+ "version": "2.2.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>",