Commit Graph

1100 Commits

Author SHA1 Message Date
Luis Ángel San Martín
5715801616 Always use 7zip instead of p7zip 2024-09-08 12:23:27 +02:00
Luis Ángel San Martín
1c48f05398 Add support for printing more information in diagnosis log
Also yacreaderlibraryserver can now print this with the --system-info option

This will help when giving support to users.
2024-09-05 17:48:48 +02:00
Luis Ángel San Martín
a3f3149764 Return 404 if the comic is not found 2024-08-31 12:44:31 +02:00
Luis Ángel San Martín
ca1b057361 Fix partial updates nuking then whole db 2024-08-13 22:05:30 +02:00
Luis Ángel San Martín
fd26a2490d Fix "show recent indicator" toggle not working 2024-08-13 21:51:27 +02:00
Luis Ángel San Martín Rodríguez
a0e22d83b0 Fix macos compilation 2024-07-10 17:49:18 +02:00
Luis Ángel San Martín
8ce878b0cb Fix access to library actions on macos 2024-07-10 16:26:05 +02:00
Luis Ángel San Martín
689a6465aa Fix format 2024-07-09 19:42:41 +02:00
Luis Ángel San Martín
f9039c7a26 Add support for setting the content type to a whole library 2024-07-09 19:18:22 +02:00
Luis Ángel San Martín
58ec456fc7 Extract the library QActions to its own file 2024-06-23 19:02:13 +02:00
Luis Ángel San Martín
7fbd25514f Fix headers in the table view getting stuck in a non moveable state
The state can be saved with "sections moveable = false", so when it's restored the headers become non moveable, setting the property to true later should prevent this from happening.
2024-06-15 16:29:52 +02:00
Luis Ángel San Martín
9436520399 Merge branch 'develop' of https://github.com/YACReader/yacreader into develop 2024-02-13 18:41:33 +01:00
Luis Ángel San Martín
2b2762c045 Improve and fix comic file size format 2024-02-13 18:41:23 +01:00
Luis Ángel San Martín
24719fa54b
Merge pull request #419 from selmf/unarr-7z
Unarr: Enable 7z for unarr 1.1.x +
2024-02-13 18:04:30 +01:00
Felix Kauselmann
b4a7d86f96 Unarr: Add 7z to reader file selector and library database for unarr 1.1.x 2024-02-12 22:54:39 +01:00
Luis Ángel San Martín
374898702d Fix folders type when they are added 2024-02-12 19:33:14 +01:00
Luis Ángel San Martín
7baf144c69 Fix columns in the search results. 2024-02-06 18:13:57 +01:00
Luis Ángel San Martín
76df7e1d83 typo 2024-02-02 13:04:45 +01:00
Luis Ángel San Martín
19e45ef9de Fix issues getting marked as opened because android minimum current page is 1 2024-02-02 13:04:38 +01:00
Luis Ángel San Martín
08cbb88891 Mark function as deprecated and remove unused function 2024-01-31 19:07:27 +01:00
Luis Ángel San Martín
ef9a826c9f Update simplified chinese translations 2024-01-29 17:15:45 +01:00
Luis Ángel San Martín
a591305397 Update translations 2024-01-27 13:17:46 +01:00
Luis Ángel San Martín
ccd8eae76c Missing brace 2024-01-27 12:15:53 +01:00
Luis Ángel San Martín
1280918bfe Fix missing cover after updating the comics flow 2024-01-27 10:26:36 +01:00
Luis Ángel San Martín
2f86eca240 Fix translation missing from YACReader when opening from YACReaderLibrary 2024-01-19 16:45:32 +01:00
Luis Ángel San Martín
7a72e7588b Fix type propagation from the container folder 2024-01-19 16:44:12 +01:00
Luis Ángel San Martín
abdf5bda4f Show the current type as checked in the context menu 2024-01-19 16:43:37 +01:00
Luis Ángel San Martín
9ae4911b78 Fix parentId value when a folder info is requested to the server 2024-01-17 16:23:54 +01:00
Luis Ángel San Martín
a5d1036886 Rewrite LibrariesControllerV2 to be safer and include the library uuid 2024-01-14 08:38:00 +01:00
Luis Ángel San Martín
7c1e9298ee Add a method to get the list of libraries sorted like they are shown in the UI 2024-01-14 08:36:12 +01:00
Luis Ángel San Martín
a4f36396f5 Update the sync controller for new clients 2024-01-13 17:20:22 +01:00
Luis Ángel San Martín
04f0d22563 Fix "more recent" calculation in the server side
All comics received were being sent back if they were already opened
2024-01-13 17:19:20 +01:00
Luis Ángel San Martín
e26169386c include comic_info_id in comic json 2024-01-13 17:15:54 +01:00
Luis Ángel San Martín
851215f12d Add method for getting the legacy id from the uuid 2024-01-13 17:15:30 +01:00
Luis Ángel San Martín
d25a122b48 Update server version to 2.1 2024-01-07 10:53:31 +01:00
Luis Ángel San Martín
53f7fd4a28 Add new controller for getting a folder 2024-01-07 10:53:21 +01:00
Luis Ángel San Martín
5728d4bb18 Add more info to json content + better handling of optionality 2024-01-07 10:52:27 +01:00
Luis Ángel San Martín
b4951fcb1a Add convenience method for getting the new uuid from the legacy id 2024-01-07 10:26:22 +01:00
Luis Ángel San Martín
9e05f8ea6e Add function for loading a single folder by id 2024-01-07 09:18:16 +01:00
Luis Ángel San Martín
15619ed96c Load comic number when getting the comics currently being read 2024-01-07 09:09:22 +01:00
Luis Ángel San Martín
63c2896270 Fix args 2023-12-16 08:28:59 +01:00
Luis Ángel San Martín
cf99229441 Add some css to the webui status page controller 2023-12-16 08:28:42 +01:00
Luis Ángel San Martín
ed82f0c801 Add more info to the start log in YACReaderLibrary 2023-12-16 08:27:46 +01:00
Luis Ángel San Martín
16924eea38 Fix url creation for local files 2023-11-29 18:02:56 +01:00
Felix Kauselmann
9278160bbc
ComicInfo::getTypeString: Return an empty string for unhandled enums (#403)
* ComicInfo::getTypeString: Add default return for unhandled enum

* CXX flags: Promote warnings about missing branches in enum-based switches as errors

* Add missing case in switch

* Catch conversion errors in debug mode and silence missing return warnings

* Replace default with missing cases

* ComicInfo::getTypeString: Use QStringLiterals

* Revert "CXX flags: Promote warnings about missing branches in enum-based switches as errors"

This reverts commit d22c115925.

---------

Co-authored-by: Luis Ángel San Martín <luisangelsm@gmail.com>
2023-10-28 17:07:32 +02:00
Luis Ángel San Martín
682f5761b2 Propagate updates to all the parent folders 2023-10-19 19:34:02 +02:00
Luis Ángel San Martín
14fccb01d0 Clean code 2023-10-19 19:32:03 +02:00
Luis Ángel San Martín
24a3602b27 Make sure that columns without title are always hidden 2023-10-15 13:05:59 +02:00
Luis Ángel San Martín
f319b00c70 Add a data migration to ensure that the number types are migrated to text in the db schema
This fixes a problem storing some text number formats in the db when the type is integer.
2023-10-15 12:53:30 +02:00
Luis Ángel San Martín
54fc070a2e Load the default columns if the .ini file doesn't have a config for the headers 2023-10-12 22:41:34 +02:00
Luis Ángel San Martín
3747c71c66 Add context menu to pick what columns are visible in the classic comics view 2023-10-09 19:27:47 +02:00
Luis Ángel San Martín
e6e5208001 Add new columns to the comics model 2023-10-09 19:26:53 +02:00
Luis Ángel San Martín
585ec86b61 Use DB_VERSION instead of VERSION 2023-09-02 22:20:38 +02:00
Luis Ángel San Martín
d1533174b0 Try to send files and folders to the bin before trying to delete them 2023-08-25 16:21:21 +02:00
Luis Ángel San Martín
7bfe9ea6b3 Keep disabled actions during navigation while automatic updates are happening 2023-08-24 17:51:18 +02:00
Luis Ángel San Martín
b513103d9b Add a mechanism to control if automatic updates can start
For now they won't start if the user is editing comics information.
2023-08-23 22:45:09 +02:00
Luis Ángel San Martín
e4fb0fd40c lupdate 2023-08-23 22:00:18 +02:00
Luis Ángel San Martín
8e2910607d Make automatic updates cancelable by the user 2023-08-23 21:50:21 +02:00
Luis Ángel San Martín
726ae067dd Update ts files 2023-08-22 22:06:37 +02:00
Luis Ángel San Martín
b6282b9bd4 Add a warning about library updates 2023-08-22 22:04:20 +02:00
Luis Ángel San Martín
060131d66a Don't reload anything if the model is not loaded 2023-08-21 22:43:59 +02:00
Luis Ángel San Martín
fe983c2cd2 Early finish if the database is not valid 2023-08-21 22:43:34 +02:00
Luis Ángel San Martín
9d8766938b updateLibrary should only try to update the library 2023-08-21 22:42:36 +02:00
Luis Ángel San Martín
7249988837 Return invalid databases if the database doesn't exist 2023-08-21 22:40:27 +02:00
Luis Ángel San Martín
d70ea49c53 Minimize the amount of actions available during updates 2023-08-20 18:42:11 +02:00
Luis Ángel San Martín
a6696f35b2 Restore value change committed by mistake 2023-08-20 17:28:27 +02:00
Luis Ángel San Martín
3cd83eb31b Missing declaration 2023-08-20 14:14:54 +02:00
Luis Ángel San Martín
0623a6b101 Implement stop/cancel on LibrariesUpdateCoordinator 2023-08-20 12:39:04 +02:00
Luis Ángel San Martín
bf35d0a621 Stop library creation/updates on exit 2023-08-20 12:38:35 +02:00
Luis Ángel San Martín
45043cf36e Make possible to cancel updates/creations 2023-08-20 12:36:40 +02:00
Luis Ángel San Martín
a6caf98af9 Reload comic cover when it changes 2023-08-17 19:42:10 +02:00
Luis Ángel San Martín
7f129ac1fa Emit a signal when the cover of a comic changes 2023-08-17 19:41:43 +02:00
Luis Ángel San Martín
ab9472cb58 Add a method for triggering the change of a comic cover from the model
Sad day for nice code.
2023-08-17 19:41:13 +02:00
Luis Ángel San Martín
5b8ec75e5f Update secondary views when the model gets reloaded 2023-08-16 17:46:33 +02:00
Luis Ángel San Martín
12c268ab42 Fix Qt5 Compilation 2023-08-13 15:22:15 +02:00
Luis Ángel San Martín
8e43bda13b Refresh current content after editing tags instead of doing a full reload.
TODO: detect row movements, now rows are deleted and readded
2023-08-13 12:31:19 +02:00
Luis Ángel San Martín
93a826f80a Setup LibrariesUpdateCoordinator 2023-08-13 11:57:40 +02:00
Luis Ángel San Martín
811ba2f957 Do models updates instead of do full library or folder reloads 2023-08-13 11:55:44 +02:00
Luis Ángel San Martín
7aac11483e Add method to YACReaderContentViewsManager to update the current content view 2023-08-13 11:43:28 +02:00
Luis Ángel San Martín
80ff6ed63b Add method to FolderContentView to reload its contents 2023-08-13 11:42:36 +02:00
Luis Ángel San Martín
b2d48a77ca Update the flow view with new covers when the model adds rows 2023-08-13 11:42:06 +02:00
Luis Ángel San Martín
0024d9afda Add method to ComicView to reload its content 2023-08-13 11:41:40 +02:00
Luis Ángel San Martín
3a0e8db189 Implement support for updating ComicModel without resetting the whole model
TODO: Favorites, Label, ReadingList still fallback to full reload because we need a way of comparing old vs new results. SearchResult does nothing because we don't have access to the search query.
2023-08-13 11:40:59 +02:00
Luis Ángel San Martín
2e9ec030ad Implement support for updating FolderModel without resetting the whole model
This will make views keep their state after an update.
2023-08-13 11:33:33 +02:00
Luis Ángel San Martín
c06156a937 Make ComicFlow/ComicFlowWidget able to insert new covers at a given position 2023-08-13 11:17:18 +02:00
Luis Ángel San Martín
82aa380bb5 Add methods to ComicItem to get/set the internal data 2023-08-13 11:13:21 +02:00
Luis Ángel San Martín
f33eb0f3f5 Fix name values used for comparison 2023-08-13 11:12:52 +02:00
Luis Ángel San Martín
a60e11d93a Add methods to FolderItem 2023-08-13 11:12:14 +02:00
Luis Ángel San Martín
f7d47103a2 Fix typo 2023-08-13 10:45:12 +02:00
Luis Ángel San Martín
6cef156893 Add new UI settings to control automatic library updates 2023-08-13 10:37:29 +02:00
Luis Ángel San Martín
afa9763499 Add class to coordinate automatic library updates 2023-08-13 10:33:24 +02:00
Luis Ángel San Martín
be7a16efa6 Refactor YACReaderLibraries
It includes a new UUID per library (which isn't used yet) and a new class YACReaderLibrary that replaces the old `QMap<QString, QPair<int, QString>>`.
2023-08-13 10:19:28 +02:00
Luis Ángel San Martín
dd411db9ef Remove commented code 2023-08-13 10:05:09 +02:00
Luis Ángel San Martín
231bc59a48 Do not parse any data, we only need the ids 2023-08-08 19:00:01 +02:00
Luis Ángel San Martín
df26f10b9f Remove unused include 2023-08-08 18:59:17 +02:00
Luis Ángel San Martín
71a7a07274 Add DB_VERSION to keep track of DBs versions
This will make easy to track compatibility with a certain DB structure across different flavors of YACReader. It will only change when the DB structure changes.
2023-08-06 08:55:55 +02:00
Luis Ángel San Martín
c0effb43b3 Fix set type context menu 2023-08-06 08:52:18 +02:00
Luis Ángel San Martín
5d10a03044 Fix crash when dropping comics in sublists 2023-07-10 08:39:31 +02:00
Luis Ángel San Martín
acd5caa9fe Rename variable to match logic 2023-07-10 08:38:03 +02:00
Luis Ángel San Martín
a77a704d48 Fix getting only distinct rows when querying folders through the search engine 2023-07-08 19:11:59 +02:00