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.
|
@@ -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,
|
|
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
|
@@ -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,
|
|
34
|
+
return youtubedl(this.streamURL, {"o": true}, {}).stdout;
|
|
35
35
|
}
|
|
36
36
|
}
|