diff --git a/src/StremioVideo/selectVideoImplementation.js b/src/StremioVideo/selectVideoImplementation.js index 09ad141..22b8bea 100644 --- a/src/StremioVideo/selectVideoImplementation.js +++ b/src/StremioVideo/selectVideoImplementation.js @@ -11,6 +11,9 @@ var withHTMLSubtitles = require('../withHTMLSubtitles'); var withVideoParams = require('../withVideoParams'); function selectVideoImplementation(commandArgs, options) { + + console.log('selectVideoImplementation platform', commandArgs.platform); + if (!commandArgs.stream || typeof commandArgs.stream.externalUrl === 'string') { return null; } @@ -39,6 +42,7 @@ function selectVideoImplementation(commandArgs, options) { return withStreamingServer(withHTMLSubtitles(WebOsVideo)); } if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV') { + console.log('selectVideoImplementation using Titan Player with server'); return withStreamingServer(withHTMLSubtitles(TitanVideo)); } return withStreamingServer(withHTMLSubtitles(HTMLVideo)); @@ -52,6 +56,7 @@ function selectVideoImplementation(commandArgs, options) { return withVideoParams(withHTMLSubtitles(WebOsVideo)); } if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV') { + console.log('selectVideoImplementation using Titan Player'); return withVideoParams(withHTMLSubtitles(TitanVideo)); } return withVideoParams(withHTMLSubtitles(HTMLVideo)); diff --git a/src/withHTMLSubtitles/withHTMLSubtitles.js b/src/withHTMLSubtitles/withHTMLSubtitles.js index 9711f4d..9bdf4a0 100644 --- a/src/withHTMLSubtitles/withHTMLSubtitles.js +++ b/src/withHTMLSubtitles/withHTMLSubtitles.js @@ -266,6 +266,7 @@ function withHTMLSubtitles(Video) { })); }); } + console.log('selectedTrack', selectedTrack); loadSubtitleFromUrl(selectedTrack.url); } renderSubtitles();