我檢查了所有處理YouTube-dl問題的問題,但未找到與我的問題相同的問題;爲什麼YouTube-dl只下載鏈接來自meteorjs應用程序中的YouTube?
當我在我的meteorjs應用程序中下載帶有節點YouTube-dl的YouTube視頻時,除了Firefox中打開的視頻在新標籤頁中下載它之外,其他所有方面都可以(在Chrome中)但是,當我嘗試從其他網站如Facebook下載視頻(鉻),Twitter或任何其他人,它拋出這個錯誤控制檯
Error: Internal server error [500]
而這一次在終端
Exception while invoking method 'commandliiiine'Error: No video id found: https://www.facebook.com/sawtelghad/videos/1070722126318944/
這我在服務器
var ytdl = Meteor.npmRequire('ytdl-core');
var Future = Meteor.npmRequire("fibers/future");
Meteor.methods({
'commandliiiine': function(url){
this.unblock();
var future = new Future();
ytdl.getInfo(url, function(err, result) {
future.return(result);
});
return future.wait();
}
});
和代碼,這是在客戶端的代碼
Meteor.call('commandliiiine', url, function(error, result){
if (result) {
Session.set('videoTitle', result.title);
Session.set('videoImage', result.thumbnail_url);
} else {
console.log('error:'+ error);
}
});
此YouTube-DL的版本,我用: 「ytdl芯」: 「0.7.9」
誰能幫助我解決這個問題!請
感謝的很多
@Roemer,請你能告訴我什麼,爲什麼你編輯我的問題! – abdou
我刪除了'Facebook'標籤,因爲您的問題與此無關。 – Roemer
@Roemer所以,沒有視頻在Facebook上下載?? – abdou