Commit Graph

1853 Commits

Author SHA1 Message Date
Luis Ángel San Martín
8ea201ece9 Use usigned long long to fix compiler error 2018-05-21 23:13:47 +02:00
Luis Ángel San Martín
e77d613002 Update last time opened when updating reading progress from ios client. 2018-05-21 22:13:07 +02:00
Luis Ángel San Martín
38e3b40e8f Process last time opened in sync controller 2018-05-21 22:10:53 +02:00
Luis Ángel San Martín
d6c563e881 If a comic doesn't have library and id info, then try to update the info in all the libraries. 2018-05-21 19:52:29 +02:00
Luis Ángel San Martín
6cfd09a8b8 Add method for updating reading comic information given a hash. 2018-05-21 19:51:30 +02:00
Luis Ángel San Martín
0e4ffb15a6 Fix update from remote client.
current page has to be set before checking for read.
2018-05-21 19:50:28 +02:00
Luis Ángel San Martín
8d60659a4d updated gitignore 2018-05-21 18:54:10 +02:00
Luis Ángel San Martín
5c876e6785 Make YACReader send info for the next comic.
Now we can set the next comic as reading.
2018-05-20 17:43:28 +02:00
Luis Ángel San Martín
50c9238376 Only try to set the next comic as read if there is a next comic. 2018-05-20 17:42:49 +02:00
Luis Ángel San Martín
c97bc6ef88 Fix determining if we are in double page or not. 2018-05-20 17:39:08 +02:00
Luis Ángel San Martín
c93e86af12 Fix loading some missing fields from database 2018-05-20 15:33:11 +02:00
Luis Ángel San Martín
c9f703b6f7 Revert "Fixed wrong index asigned to current page from the viewer"
This reverts commit 26fdb5a303.
2018-05-20 15:19:48 +02:00
Luis Ángel San Martín
e405f14256 Set next comic as reading from update comic controller. 2018-05-20 14:49:32 +02:00
Luis Ángel San Martín
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
Luis Ángel San Martín
45e44fa54f Only set a comic as reading if it has been opened beyod the cover. 2018-05-20 14:48:08 +02:00
Luis Ángel San Martín
82cfdfdf30 YACReader should be dummy about has been opened.
It should only send back information, hasBeenOpened will be set in YACReaderLibrary depending on various factors.
2018-05-20 14:43:19 +02:00
Luis Ángel San Martín
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
Luis Ángel San Martín
26fdb5a303 Fixed wrong index asigned to current page from the viewer 2018-05-20 14:40:07 +02:00
Luis Ángel San Martín
d3bb598a7d Add controllers to provide comics information from reading lists and labels 2018-05-01 11:54:00 +02:00
Luis Ángel San Martín
0e45767e67 Check for comic opening failures before trying to serve a page. 2018-04-28 18:00:40 +02:00
Luis Ángel San Martín
618f6575b2 Fix error code in page controller 2018-04-28 17:57:06 +02:00
Luis Ángel San Martín
aba45b3011 Keep track of erros while opening a comic
This way we can query if an error ocurred opening a comic.
2018-04-28 17:55:48 +02:00
Luis Ángel San Martín
6542162293 Fix YACReaderLibraryServer compilation for v2 2018-04-28 10:24:38 +02:00
Luis Ángel San Martín
c593e3570d Add the ability to update libraries to new versions in the headless server
It checks the libraries on the start up. It will block the app until everyting it is ready. C
2018-04-28 10:24:10 +02:00
Luis Ángel San Martín
a4941553ec Merge branch 'develop' into server_2.0 2018-04-27 23:14:40 +02:00
Luis Ángel San Martín
381c0f6560 Update gitignore file 2018-04-27 23:14:09 +02:00
Luis Ángel San Martín
4e004f87af Fix compilation in windows. 2018-04-27 22:40:36 +02:00
Luis Ángel San Martín
841771c11a Merge branch 'develop' into server_2.0 2018-04-27 22:34:47 +02:00
Luis Ángel San Martín
1b72f27cee Remove hgignore file. 2018-04-27 22:34:22 +02:00
Luis Ángel San Martín
9df2cf51eb Add gitignore file 2018-04-27 22:33:40 +02:00
Luis Ángel San Martín
451c2ec688 Fix label content controller v2 2018-04-26 22:19:16 +02:00
Luis Ángel San Martín
b92b696458 Fix favorites controler v2 2018-04-26 22:18:56 +02:00
Luis Ángel San Martín
f3e8f1a6cd Fix label to json 2018-04-26 22:18:25 +02:00
Luis Ángel San Martín
dc992edb55 Fix color loading for labels. 2018-04-26 22:18:12 +02:00
Luis Ángel San Martín
4deec13cff Fix background color of the current comic list in macosx 2018-04-26 22:17:11 +02:00
Luis Ángel San Martín
505d54d8b4 Remove outdated comments. 2018-04-26 18:29:36 +02:00
Luis Ángel San Martín
e4b4f96369 Use better http status code to notify clientes about what is going on while loading comics. 2018-04-26 18:27:42 +02:00
Luis Ángel San Martín
30211233af Use compact json in responses. 2018-04-26 18:26:44 +02:00
Luis Ángel San Martín
87b0e64b1a Monitorize folder content controller performance in debug mode. 2018-04-26 18:24:35 +02:00
Luis Ángel San Martín
630a5c94a0 Move from session based state to client side tokens.
YACReaderHttpSession is still used, but it is not a http session anymore.
2018-04-25 22:20:03 +02:00
Luis Ángel San Martín
701817d76b Update comic url to use v2.
This should be replaced with json and the url shouldl be built in the client side.
2018-04-25 22:17:51 +02:00
Luis Ángel San Martín
3cb6e2cd85 Check bookmarks nullity and return in Comic before updating the bookmark image. 2018-04-25 22:16:20 +02:00
Luis Ángel San Martín
f3f4e7720a Early return if the compressed archive delegate is null 2018-04-25 22:15:30 +02:00
Luis Ángel San Martín
932910d0a9 Fix memory leak, comics need to be in the right thread before deleting them. 2018-04-24 21:01:38 +02:00
Luis Ángel San Martín
040664d3ba Backout changeset c42e71e42d7968ddb6c63fd39011669503b9122c 2018-04-24 20:53:48 +02:00
Luis Ángel San Martín
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
Luis Ángel San Martín
0ff7da1d2c boolean is not a standard c++ type 2018-04-24 16:53:47 +02:00
Luis Ángel San Martín
3cff8b59e7 Add some undefined values wrapping. 2018-04-24 16:32:21 +02:00
Luis Ángel San Martín
db66fe33f3 Merge 2018-04-24 14:44:23 +02:00
Luis Ángel San Martín
30c8cf180e Fix loadComic not loading the comic file name. 2018-04-24 14:43:42 +02:00