-.-
This commit is contained in:
parent
125efb0bf8
commit
201da0cd36
|
@ -81,7 +81,7 @@ module.exports = (lib) => {
|
||||||
//var dlformat = (m4a?'audioonly':'webm');
|
//var dlformat = (m4a?'audioonly':'webm');
|
||||||
var dlformat;
|
var dlformat;
|
||||||
if(m4a)
|
if(m4a)
|
||||||
dlformat = 'audioonly';
|
dlformat = { filter: 'audioonly' };
|
||||||
else
|
else
|
||||||
dlformat = { filter: (format) => { return format.container === 'webm'; } };
|
dlformat = { filter: (format) => { return format.container === 'webm'; } };
|
||||||
|
|
||||||
|
@ -91,8 +91,8 @@ module.exports = (lib) => {
|
||||||
info = {
|
info = {
|
||||||
type: 'youtube',
|
type: 'youtube',
|
||||||
title: title,
|
title: title,
|
||||||
mime: m4a?'audio/mp4':'video/webm',
|
mime: (m4a?'audio/mp4':'video/webm'),
|
||||||
ext: m4a?'m4a':'webm',
|
ext: (m4a?'m4a':'webm'),
|
||||||
thumb: iurl
|
thumb: iurl
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user