fix getVideoData title not correct answer

This commit is contained in:
bonjinnorenka 2023-08-26 08:31:54 +09:00
parent fc49ab285e
commit 2ae3b3e2e4

View File

@ -371,7 +371,7 @@ class invidious_embed{
this.message_wait = {getvolume:[],getmutestatus:[],getduration:[],getcurrenttime:[],getplaybackrate:[],getavailableplaybackrates:[],gettitle:[]}; this.message_wait = {getvolume:[],getmutestatus:[],getduration:[],getcurrenttime:[],getplaybackrate:[],getavailableplaybackrates:[],gettitle:[]};
} }
async getVideoData(){ async getVideoData(){
return {video_id:this.videoId,title:this.promise_send_event('gettitle')}; return {video_id:this.videoId,title:await this.promise_send_event('gettitle')};
} }
} }
function invidious_ready(func){ function invidious_ready(func){