Commit Graph

80 Commits

Author SHA1 Message Date
f2bf53ce5b Add new fields to the DB and make then available to be used in the apps 2023-05-12 16:59:23 +02:00
689e31891f Extract method 2022-10-24 19:00:04 +02:00
3fecc3316e Use the updated folders 2022-10-24 07:38:17 +02:00
a2541a4c96 Exclude root folder 2022-10-24 07:37:36 +02:00
61458b966c Add a output parameter to know if a comic is found in the DB when we try to load it 2022-10-15 11:42:20 +02:00
23deb889b9 Use always the first comic as the cover of a folder
There is no way to show comics and folders together in YACReaderLibrary yet, so it looks confusing to use the cover from a sub-folder.
2022-10-12 22:17:22 +02:00
60e2255886 Fix infinite loop when propagateFolderUpdatesToParent is invoked using the root folder 2022-09-12 19:24:41 +02:00
243892f5d3 Remove debug output 2022-09-01 11:09:02 +02:00
8a6ec5fcc6 Assign covers to folders from subfolders & comics
Before this commit folder with no direct comics (only subfolders) didn't have a cover image to be displayed. Now updating the children info  is done recursively and subfolders are taken into account.

This affects the iOS client remote browser so far, but it is also needed for the future browser update (display folders as a grid instead of using EmptyFolderWidget)
2022-08-31 18:58:25 +02:00
c9bb429ad6 Remove unused method 2022-08-31 16:13:28 +02:00
59ff02631e Fix comic number missing from reading lists content provided through the server 2022-08-09 16:42:18 +02:00
5aa02a19bb clang-format 2021-10-18 21:56:52 +02:00
80f808bd68 Insert xml info while adding a comic to the library 2021-09-27 15:41:33 +02:00
f9285bd099 Add a flag to getReadingListFullContent so it can load all the fields 2021-05-27 18:39:00 +02:00
7bb450408c Extract "query to ComicInfo" to its own method to avoid duplicated code 2021-05-27 18:38:24 +02:00
13a29e2657 Make "delete" icon work properly in the "Reading" list
Only the "Favorites" special list was handled.
2021-05-16 09:01:35 +02:00
811c3fcfe4 Add function to get comics from a folder properly sorted 2021-04-30 09:52:10 +02:00
4dcbb958dc Eliminate QStringList <=> QList<QString> conversions
The conversions prevented return value optimization and caused a
-Wreturn-std-move Clang warning.
2021-03-09 21:32:23 +01:00
3c9ed6ef8f Deprecated qSort => std::sort
This change gets rid of some GCC's -Wdeprecated-declarations warnings.
2021-03-09 21:32:23 +01:00
3f6c44ce7a Fix SQL update query for setting manga in all the comics in a folder 2021-01-17 14:05:14 +01:00
6461a4014e Add actions for setting folders as manga/normal 2021-01-16 18:31:48 +01:00
60de69635b Get/set new manga field from/to the db 2021-01-16 18:30:25 +01:00
3ab05c6777 Add a new boolean field for tagging comics as manga 2021-01-16 14:23:59 +01:00
2b780e23a4 Make updateFromRemoteClient return more updated comics
So they can be sent back to the client.
2020-08-25 19:01:43 +02:00
4b3042def4 Fix object leaks in database code
Qt's database and query model requires that both the queries and the database
objects are out of scope before a database connection can safely be removed.

Solution: Properly encapsulate databases and queries in "{ }" and use a string
to cache the connection name for out-of-scope removal.
2020-08-25 17:34:46 +02:00
a6bfd44aec Remove clear from sql query
It was committed by mistake
2019-09-16 23:44:30 +02:00
9056fffb66 Use db transactions when updating the progress from iOS
Timeouts were a problem before.
2019-08-24 13:31:52 +02:00
bb334cfd50 Use auto to avoid duplicating the type name 2019-06-01 16:04:48 +02:00
e3ec56aa43 Format code using clang-format 2019-05-30 19:46:37 +02:00
3babc0980e Library: remove unused variable 2019-04-01 11:25:16 +02:00
66941510f0 Library: fix misleading indentation 2019-04-01 11:25:16 +02:00
d5a11fb16b Add .gitattributes rules for text and binary handling 2018-07-30 15:04:04 +02:00
9cc4f65fc8 Use older api currentSecsSinceEpoch was introduced in Qt 5.8 2018-05-28 21:18:11 +02:00
1cd33197cc Set hasBeenOpened as true if currentPage > 1
I have seen comics opened with hasBeenOpened to false.
2018-05-25 19:28:20 +02:00
a8655b1037 All lists should load the coverSizeRatio 2018-05-22 18:58:33 +02:00
317f2b839f Remove setting last time opened.
The value should come from the client.
2018-05-21 23:14:51 +02:00
e77d613002 Update last time opened when updating reading progress from ios client. 2018-05-21 22:13:07 +02:00
6cfd09a8b8 Add method for updating reading comic information given a hash. 2018-05-21 19:51:30 +02:00
0e4ffb15a6 Fix update from remote client.
current page has to be set before checking for read.
2018-05-21 19:50:28 +02:00
c93e86af12 Fix loading some missing fields from database 2018-05-20 15:33:11 +02:00
1503fe5383 Add method for marking a comic as reading without opening it first.
Usefull when closing the a comic in the last page to mark the next one and the next being readed.
2018-05-20 14:49:07 +02:00
45e44fa54f Only set a comic as reading if it has been opened beyod the cover. 2018-05-20 14:48:08 +02:00
23823725ac Fix how we consider a comic as being read.
Basically is this: it has been opened and not set as READ.
2018-05-20 14:41:55 +02:00
dc992edb55 Fix color loading for labels. 2018-04-26 22:18:12 +02:00
52c76d5482 Create unique database connections per thread and remove them using the database connection name from the QSqlDatabase instance being used. 2018-04-24 20:53:24 +02:00
db66fe33f3 Merge 2018-04-24 14:44:23 +02:00
30c8cf180e Fix loadComic not loading the comic file name. 2018-04-24 14:43:42 +02:00
c36d4501cc Fix update remote reading query, a coma was missing. 2018-03-24 21:00:27 +01:00
2bb258df13 Load the coverSizeRatio from DB. 2018-03-24 08:20:29 +01:00
f0e1458576 Save and load the the new comic info fields in DBHelper. 2018-03-11 15:30:34 +01:00