Added API to get manga from url
This commit is contained in:
parent
9a52262e2b
commit
5927374271
@ -58,9 +58,14 @@ async function GetAvailableControllers(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function GetPublicationFromConnector(connector, title){
|
async function GetPublicationFromConnector(connector, title){
|
||||||
var uri = `${apiUri}/Manga/FromConnector?connector=${connector}&title=${title}`;
|
var uri;
|
||||||
let json = await GetData(uri);
|
if(title.includes("http")){
|
||||||
return json;
|
uri = `${apiUri}/Manga/FromConnector?connector=${connector}&url=${title}`;
|
||||||
|
}else{
|
||||||
|
uri = `${apiUri}/Manga/FromConnector?connector=${connector}&title=${title}`;
|
||||||
|
}
|
||||||
|
let json = await GetData(uri);
|
||||||
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function GetChapters(connector, internalId){
|
async function GetChapters(connector, internalId){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user