Set Interval for MonitorJob to 3 hrs
Added function to retrieve Cover-Url
This commit is contained in:
parent
d9ec9cb969
commit
4bad1b6382
@ -69,6 +69,10 @@ async function GetChapters(connector, internalId){
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function GetCoverUrl(internalId){
|
||||||
|
return `${apiUri}/Manga/Cover?internalId=${internalId}`;
|
||||||
|
}
|
||||||
|
|
||||||
async function GetAllJobs(){
|
async function GetAllJobs(){
|
||||||
var uri = `${apiUri}/Jobs`;
|
var uri = `${apiUri}/Jobs`;
|
||||||
let json = await GetData(uri);
|
let json = await GetData(uri);
|
||||||
@ -129,8 +133,8 @@ async function GetLibraryConnectors(){
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
function CreateMonitorJob(connector, internalId, interval){
|
function CreateMonitorJob(connector, internalId){
|
||||||
var uri = `${apiUri}/Jobs/MonitorManga?connector=${connector}&internalId=${internalId}&interval=${interval}`;
|
var uri = `${apiUri}/Jobs/MonitorManga?connector=${connector}&internalId=${internalId}&interval=03:00:00`;
|
||||||
PostData(uri);
|
PostData(uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user