mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
clang-format
This commit is contained in:
@ -41,8 +41,8 @@ void ComicControllerV2::service(HttpRequest &request, HttpResponse &response)
|
||||
|
||||
bool remoteComic = path.endsWith("remote");
|
||||
|
||||
//TODO
|
||||
//if(pathElements.size() == 6)
|
||||
// TODO
|
||||
// if(pathElements.size() == 6)
|
||||
//{
|
||||
// QString action = pathElements.at(5);
|
||||
// if(!action.isEmpty() && (action == "close"))
|
||||
@ -51,7 +51,7 @@ void ComicControllerV2::service(HttpRequest &request, HttpResponse &response)
|
||||
// response.write("",true);
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
// }
|
||||
|
||||
YACReaderLibraries libraries = DBHelper::getLibraries();
|
||||
|
||||
@ -87,10 +87,10 @@ void ComicControllerV2::service(HttpRequest &request, HttpResponse &response)
|
||||
}
|
||||
|
||||
response.setHeader("Content-Type", "text/plain; charset=utf-8");
|
||||
//TODO this field is not used by the client!
|
||||
// TODO this field is not used by the client!
|
||||
response.write(QString("library:%1\r\n").arg(libraryName).toUtf8());
|
||||
response.write(QString("libraryId:%1\r\n").arg(libraryId).toUtf8());
|
||||
if (remoteComic) //send previous and next comics id
|
||||
if (remoteComic) // send previous and next comics id
|
||||
{
|
||||
QList<LibraryItem *> siblings = DBHelper::getFolderComicsFromLibrary(libraryId, comic.parentId, false);
|
||||
|
||||
@ -116,15 +116,15 @@ void ComicControllerV2::service(HttpRequest &request, HttpResponse &response)
|
||||
response.write(QString("nextComicHash:%1\r\n").arg(nextComic->info.hash).toUtf8());
|
||||
}
|
||||
} else {
|
||||
//ERROR
|
||||
// ERROR
|
||||
}
|
||||
qDeleteAll(siblings);
|
||||
}
|
||||
response.write(comic.toTXT().toUtf8(), true);
|
||||
} else {
|
||||
//delete comicFile;
|
||||
// delete comicFile;
|
||||
response.setStatus(404, "not found");
|
||||
response.write("404 not found", true);
|
||||
}
|
||||
//response.write(t.toLatin1(),true);
|
||||
// response.write(t.toLatin1(),true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user