vdj 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,6 @@ class YoutubedlService {
32
32
  canFetch(target, logger) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  var res = yield youtube_dl_exec_1.default(target, { j: true }, {});
35
- console.log(res);
36
35
  return !!res;
37
36
  });
38
37
  }
@@ -35,7 +35,7 @@ class YoutubedlSong extends core_1.Song {
35
35
  stream() {
36
36
  if (typeof (this.logger) == 'function')
37
37
  this.logger(`[${this.type}] Fetching stream for ${this.URL}.`);
38
- return youtube_dl_exec_1.raw(this.streamURL, [], {}).stdout;
38
+ return youtube_dl_exec_1.raw(this.streamURL, { "o": true }, {}).stdout;
39
39
  }
40
40
  }
41
41
  exports.default = YoutubedlSong;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vdj",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -16,7 +16,6 @@ export default class YoutubedlService implements IService {
16
16
 
17
17
  public async canFetch(target: string, logger?: Logger): Promise<boolean> {
18
18
  var res = await youtubedl(target, {j: true}, {});
19
- console.log(res);
20
19
  return !!res;
21
20
  }
22
21
 
@@ -31,6 +31,6 @@ export default class YoutubedlSong extends Song {
31
31
 
32
32
  public stream(): ReadableStream | null{
33
33
  if (typeof (this.logger) == 'function') this.logger(`[${this.type}] Fetching stream for ${this.URL}.`);
34
- return youtubedl(this.streamURL, [], {}).stdout;
34
+ return youtubedl(this.streamURL, {"o": true}, {}).stdout;
35
35
  }
36
36
  }