node-csfd-api
Advanced tools
Comparing version 1.6.3 to 1.6.4
import { CSFDColorRating, CSFDFilmTypes } from 'interfaces/global'; | ||
import { CSFDCreator } from 'interfaces/movie.interface'; | ||
import { HTMLElement } from 'node-html-parser'; | ||
export declare const getId: (el: HTMLElement) => number; | ||
export declare const getType: (el: HTMLElement) => CSFDFilmTypes; | ||
@@ -6,0 +5,0 @@ export declare const getTitle: (el: HTMLElement) => string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parsePeople = exports.getOrigins = exports.getPoster = exports.getColorRating = exports.getUrl = exports.getYear = exports.getTitle = exports.getType = exports.getId = void 0; | ||
exports.parsePeople = exports.getOrigins = exports.getPoster = exports.getColorRating = exports.getUrl = exports.getYear = exports.getTitle = exports.getType = void 0; | ||
const global_helper_1 = require("./global.helper"); | ||
const getId = (el) => { | ||
const url = el.querySelector('td.name .film-title-name').attributes.href; | ||
return global_helper_1.parseIdFromUrl(url); | ||
}; | ||
exports.getId = getId; | ||
const getType = (el) => { | ||
@@ -11,0 +6,0 @@ const type = el.querySelectorAll('.film-title-info .info')[1]; |
{ | ||
"name": "node-csfd-api", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Simple NPM library for scraping CSFD", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46922
860