fix bug
This commit is contained in:
@@ -45,11 +45,11 @@ class FlixInfo {
|
|||||||
xmlMode: true
|
xmlMode: true
|
||||||
});
|
});
|
||||||
|
|
||||||
const imdbResult = $('[class="imdbRatingPlugin"]').length;
|
|
||||||
let netflixButton = null;
|
let netflixButton = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
netflixButton = /class=\"btn btn-primary watch-on-netflix\"(.*?)/img.exec(body)[0];
|
netflixButton = /class=\"btn btn-danger btn-block watch-on-service\"(.*?)/img.exec(body)[0];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
returnResult = { error: 1, errorMsg: 'this content was not found!' };
|
returnResult = { error: 1, errorMsg: 'this content was not found!' };
|
||||||
reject(returnResult)
|
reject(returnResult)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "flixinfo",
|
"name": "flixinfo",
|
||||||
"version": "1.1.7",
|
"version": "1.1.8",
|
||||||
"description": "Get movie detail with netflix id",
|
"description": "Get movie detail with netflix id",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
Reference in New Issue
Block a user