fix bug
This commit is contained in:
@@ -45,11 +45,11 @@ class FlixInfo {
|
||||
xmlMode: true
|
||||
});
|
||||
|
||||
const imdbResult = $('[class="imdbRatingPlugin"]').length;
|
||||
|
||||
let netflixButton = null;
|
||||
|
||||
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) {
|
||||
returnResult = { error: 1, errorMsg: 'this content was not found!' };
|
||||
reject(returnResult)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "flixinfo",
|
||||
"version": "1.1.7",
|
||||
"version": "1.1.8",
|
||||
"description": "Get movie detail with netflix id",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
|
||||
Reference in New Issue
Block a user