Comparing version 0.0.6 to 0.0.7
@@ -1,8 +0,6 @@ | ||
'use strict'; | ||
var EventEmitter = require('events').EventEmitter; | ||
var YoutubeDownloader = require('youtube-dl'); | ||
var BaseModule = require('../modules/BaseModule'); | ||
let EventEmitter = require('events').EventEmitter; | ||
let YoutubeDownloader = require('youtube-dl'); | ||
let BaseModule = require('../modules/BaseModule'); | ||
let TrackInfoFetcher = function() { | ||
var TrackInfoFetcher = function() { | ||
EventEmitter.call(this); | ||
@@ -38,3 +36,3 @@ | ||
this._userOptions = {}; | ||
for (let key in options) { | ||
for (var key in options) { | ||
this._userOptions[key] = options[key]; | ||
@@ -52,5 +50,5 @@ } | ||
TrackInfoFetcher.prototype.getOptions = function() { | ||
let options = this._defaultOptions.slice(); | ||
var options = this._defaultOptions.slice(); | ||
for (let key in this._userOptions) { | ||
for (var key in this._userOptions) { | ||
// we can't override default options | ||
@@ -62,3 +60,3 @@ if (options.indexOf(key) !== -1) { | ||
// [ '-f bestaudio', '--no-cache-dir ', ... ] | ||
let option = key + ' ' + this._userOptions[key]; | ||
var option = key + ' ' + this._userOptions[key]; | ||
options.push(option); | ||
@@ -76,4 +74,4 @@ } | ||
TrackInfoFetcher.prototype.getInfo = function(url) { | ||
let promise = new Promise((resolve, reject) => { | ||
let options = this.getOptions(); | ||
var promise = new Promise((resolve, reject) => { | ||
var options = this.getOptions(); | ||
YoutubeDownloader.getInfo(url, options, (error, info) => { | ||
@@ -80,0 +78,0 @@ if (error) { |
{ | ||
"name": "kaku-core", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "This repo keeps shared scripts that can be reused in differnt clients", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33696
1018