mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
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:[]};
|
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){
|
||||||
|
Loading…
Reference in New Issue
Block a user