Complete rewrite #2
@ -58,7 +58,12 @@ async function GetAvailableControllers(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function GetPublicationFromConnector(connector, title){
|
async function GetPublicationFromConnector(connector, title){
|
||||||
var uri = `${apiUri}/Manga/FromConnector?connector=${connector}&title=${title}`;
|
var uri;
|
||||||
|
if(title.includes("http")){
|
||||||
|
uri = `${apiUri}/Manga/FromConnector?connector=${connector}&url=${title}`;
|
||||||
|
}else{
|
||||||
|
uri = `${apiUri}/Manga/FromConnector?connector=${connector}&title=${title}`;
|
||||||
|
}
|
||||||
let json = await GetData(uri);
|
let json = await GetData(uri);
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user