meh, damn formats

This commit is contained in:
Flummi 2017-01-11 01:15:57 +01:00
parent 4253da7c49
commit d648e1c848

View File

@ -78,7 +78,7 @@ module.exports = (lib) => {
var title = inf.title;
var iurl = inf.iurl;
try {
var dlformat = (m4a?'m4a':'webm');
var dlformat = (m4a?'audioonly':'webm');
ytdl.downloadFromInfo(inf, { filter: (format) => { return format.container === dlformat; } })
.on('response', (res) => {
if( ( res.headers['content-length'] <= lib.cfg.main.maxFileSize ) || force ) {