mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Notify using a signal when a comic is updated using the http api
This commit is contained in:
@ -290,7 +290,12 @@ void RequestMapper::serviceV2(HttpRequest &request, HttpResponse &response)
|
||||
} else if (comicPage.exactMatch(path) || comicPageRemote.exactMatch(path)) {
|
||||
PageControllerV2().service(request, response);
|
||||
} else if (comicUpdate.exactMatch(path)) {
|
||||
UpdateComicControllerV2().service(request, response);
|
||||
auto updateController = UpdateComicControllerV2();
|
||||
updateController.service(request, response);
|
||||
|
||||
if (!updateController.error) {
|
||||
emit comicUpdated(updateController.updatedLibraryId, updateController.updatedComicId);
|
||||
}
|
||||
} else if (folderContent.exactMatch(path)) {
|
||||
FolderContentControllerV2().service(request, response);
|
||||
} else if (tags.exactMatch(path)) {
|
||||
|
Reference in New Issue
Block a user