Commit Graph

42 Commits

Author SHA1 Message Date
63fcde8035 Extract 7z loading to it's own function
This will unify 7z loading in all scenarios and it also fixes the search path in Linux, now the apps will always try to load 7z.so from LIBDIR/yacreader/7z.so, if it fails they'll try 7zip/7z.so
2024-09-15 15:50:09 +02:00
5715801616 Always use 7zip instead of p7zip 2024-09-08 12:23:27 +02:00
ca1b057361 Fix partial updates nuking then whole db 2024-08-13 22:05:30 +02:00
689a6465aa Fix format 2024-07-09 19:42:41 +02:00
f9039c7a26 Add support for setting the content type to a whole library 2024-07-09 19:18:22 +02:00
374898702d Fix folders type when they are added 2024-02-12 19:33:14 +01:00
7a72e7588b Fix type propagation from the container folder 2024-01-19 16:44:12 +01:00
14fccb01d0 Clean code 2023-10-19 19:32:03 +02:00
fe983c2cd2 Early finish if the database is not valid 2023-08-21 22:43:34 +02:00
9d8766938b updateLibrary should only try to update the library 2023-08-21 22:42:36 +02:00
a6696f35b2 Restore value change committed by mistake 2023-08-20 17:28:27 +02:00
45043cf36e Make possible to cancel updates/creations 2023-08-20 12:36:40 +02:00
5b5c5fc76b Cover page default value is 1
It's [1, numPages]
2023-06-11 08:54:51 +02:00
51a4dbf049 Remove deprecated property manga from folder and comic_info 2023-06-10 11:09:55 +02:00
f0ce50c2da Do not insert garbage in the DB if replacing a comic goes bad. 2023-06-10 09:42:58 +02:00
fa10409a31 Check the file size when updating and only compare the dates if it's enabled 2023-06-07 22:42:40 +02:00
3eb6811b1c Use the date that triggers the replacement as added to avoid weird updates 2023-06-07 21:50:24 +02:00
21e237ccf9 Update added with the modified date in comics added before the new metadata refactoring 2023-06-06 21:45:20 +02:00
8520a29a05 Detect modified files and update them
The old file is delete, the modified file is inserted and the existing metadata is copied over. The added date is updated to avoid new matches during the update process.
2023-06-05 23:28:12 +02:00
68ece533e1 Replace Q_OS_MAC with Q_OS_MACOS 2023-06-04 20:55:11 +02:00
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
a47b706e29 Fix a bunch of warnings 2023-04-30 14:00:09 +02:00
b364501a2c Do not use GUI code in non GUI components 2022-10-29 08:57:08 +02:00
150d27c3ad Make import ComicInfo.XML from new comics optional
It is disabled by default.
2022-10-28 23:31:55 +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
0fcf9d0cba Fix memory leak in LibraryCreator 2022-08-31 18:27:04 +02:00
b70556eb41 Fix emit syntax 2022-08-31 18:26:30 +02:00
862c220069 Add libarchive decompression backend 2022-08-31 09:32:23 +02:00
98851cf40f Use Qt::endl 2021-10-19 00:00:09 +02:00
5aa02a19bb clang-format 2021-10-18 21:56:52 +02:00
da51bd45c6 Use InitialComicInfoExtractor everywhere 2021-09-27 15:39:37 +02: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
d402999991 Set all new imported comics and folders as manga if the parent folder is manga 2021-01-16 18:31:13 +01: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
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
d5a11fb16b Add .gitattributes rules for text and binary handling 2018-07-30 15:04:04 +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
062e8a1a8c Fix orignalCoverSize initialization. 2018-03-12 21:25:05 +01:00
69395398e1 Partial support for storing the cover information in the DB. Work in progress. 2018-03-11 14:43:07 +01:00
f149f314e0 Merge 2017-08-26 16:54:10 +02:00
d6898e9a4e Fixed data base info retrieving through DBHelper, value(QString) should never be used because it is really slow. All items sorting should be done at db level or using std::sort. 2017-08-26 16:16:11 +02:00