diff --git a/Website/apiConnector.js b/Website/apiConnector.js index 5ec3c69..f3aec41 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -73,8 +73,8 @@ async function GetPublicationFromConnector(connector, title){ return json; } -async function GetChapters(connector, internalId){ - var uri = `${apiUri}/Manga/Chapters?connector=${connector}&internalId=${internalId}`; +async function GetChapters(connector, internalId, language){ + var uri = `${apiUri}/Manga/Chapters?connector=${connector}&internalId=${internalId}&translatedLanguage=${language}`; let json = await GetData(uri); return json; } @@ -143,13 +143,13 @@ async function GetLibraryConnectors(){ return json; } -function CreateMonitorJob(connector, internalId){ - var uri = `${apiUri}/Jobs/MonitorManga?connector=${connector}&internalId=${internalId}&interval=03:00:00`; +function CreateMonitorJob(connector, internalId, language){ + var uri = `${apiUri}/Jobs/MonitorManga?connector=${connector}&internalId=${internalId}&interval=03:00:00&translatedLanguage=${language}`; PostData(uri); } -function CreateDownloadNewChaptersJob(connector, internalId){ - var uri = `${apiUri}/Jobs/DownloadNewChapters?connector=${connector}&internalId=${internalId}`; +function CreateDownloadNewChaptersJob(connector, internalId, language){ + var uri = `${apiUri}/Jobs/DownloadNewChapters?connector=${connector}&internalId=${internalId}&translatedLanguage=${language}`; PostData(uri); } diff --git a/Website/index.html b/Website/index.html index 714153a..6ae6379 100644 --- a/Website/index.html +++ b/Website/index.html @@ -43,6 +43,11 @@