opexfilms-kinoplay
v1.0.2
Published
Library for getting links to the player and movie files from Kinoplay
Downloads
2
Maintainers
Readme
Created by Opex
Installation:
npm install opexfilms-kinoplay
Require:
const Kinoplay = require("opexfilms-kinoplay");
Class init
const kinoplay = new Kinoplay();
Functions:
- getFiles(kinopoisk_id)
await kinoplay.getFiles(4402867);
Success (if hasn't seasons):
{
"status": 200,
"iframe": "https...", // player works only in iframe tag
"data": [
{
"title": "Translation Name",
"subtitle": "https://subtitlesurl...",
"file": [
{
"quality": "360p",
"url": "https://fileurl..."
},
{
"quality": "480p",
"url": "https://fileurl..."
},
...
]
},
...
]
}
Success (if has seasons):
{
"status": 200,
"iframe": "https://playerurl...", // player works only in iframe tag
"data": [
{
"title": "1 сезон",
"folder": [
{
"title": "1 серия",
"subtitle": "https://subtitlesurl...",
"folder": [
{
"comment": "Translation Name",
"file": [
{
"quality": "360p",
"url": "https://fileurl..."
},
{
"quality": "480p",
"url": "https://fileurl..."
},
...
]
},
...
]
},
...
]
},
...
]
}
Error:
{
"status": 404, // or 400...
"data": "Movie not found"
}