diff --git a/lib/index.js b/lib/index.js index 0df9624..5395d19 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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) diff --git a/package.json b/package.json index 36f978d..d9728a8 100644 --- a/package.json +++ b/package.json @@ -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": {