ionic-youtube-streams
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -59,6 +59,6 @@ "use strict"; | ||
// @ts-ignore | ||
info.player_response = localThis.findJSON('watch.html', 'player_response', body, /\bytInitialPlayerResponse\s*=\s*\{/i, '\n', '{', utilsService); | ||
info.player_response = watchHtmlService.findJSON('watch.html', 'player_response', body, /\bytInitialPlayerResponse\s*=\s*\{/i, '\n', '{', utilsService); | ||
} | ||
catch (err) { | ||
args = this.findJSON('watch.html', 'player_response', body, /\bytplayer\.config\s*=\s*{/, '</script>', '{', utilsService); | ||
args = watchHtmlService.findJSON('watch.html', 'player_response', body, /\bytplayer\.config\s*=\s*{/, '</script>', '{', utilsService); | ||
// @ts-ignore | ||
@@ -68,3 +68,3 @@ info.player_response = utilsService.findPlayerResponse('watch.html', args); | ||
// @ts-ignore | ||
info.response = localThis.findJSON('watch.html', 'response', body, /\bytInitialData("\])?\s*=\s*\{/i, '\n', '{', utilsService); | ||
info.response = watchHtmlService.findJSON('watch.html', 'response', body, /\bytInitialData("\])?\s*=\s*\{/i, '\n', '{', utilsService); | ||
// @ts-ignore | ||
@@ -71,0 +71,0 @@ info.html5player = utilsService.getHTML5player(body); |
{ | ||
"name": "ionic-youtube-streams", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Fetch meta information about YouTube videos including stream urls in ionic apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
239592