mirror of https://github.com/iv-org/invidious.git
fix getVideoData title not correct answer
This commit is contained in:
parent
fc49ab285e
commit
2ae3b3e2e4
|
@ -371,7 +371,7 @@ class invidious_embed{
|
|||
this.message_wait = {getvolume:[],getmutestatus:[],getduration:[],getcurrenttime:[],getplaybackrate:[],getavailableplaybackrates:[],gettitle:[]};
|
||||
}
|
||||
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){
|
||||
|
|
Loading…
Reference in New Issue