node-csfd-api 2.2.0-next.0 → 2.3.1
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 +1 -1
- package/package.json +2 -2
package/helpers/movie.helper.js
CHANGED
|
@@ -27,7 +27,7 @@ const getColorRating = (bodyClasses) => {
|
|
|
27
27
|
};
|
|
28
28
|
exports.getColorRating = getColorRating;
|
|
29
29
|
const getRating = (el) => {
|
|
30
|
-
const ratingRaw = el.querySelector('.rating-average').textContent;
|
|
30
|
+
const ratingRaw = el.querySelector('.film-rating-average').textContent;
|
|
31
31
|
const rating = +(ratingRaw === null || ratingRaw === void 0 ? void 0 : ratingRaw.replace(/%/g, '').trim());
|
|
32
32
|
if (Number.isInteger(rating)) {
|
|
33
33
|
return rating;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-csfd-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
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>",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"cross-fetch": "^3.1.5",
|
|
25
|
-
"node-html-parser": "^5.
|
|
25
|
+
"node-html-parser": "^5.3.3"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"url": "git+https://github.com/bartholomej/node-csfd-api.git",
|