53 Commits

Author SHA1 Message Date
Alex Ling
8950c3a1ed Fix downloader stuck on external chapters 2021-03-14 16:27:08 +00:00
Alex Ling
a612500b0f Subscription manager 2021-03-14 16:01:29 +00:00
Alex Ling
ee52c52f46 Fix new linter errors 2021-03-12 15:03:12 +00:00
Alex Ling
70d418d1a1 Upgrade to MangaDex API v2 2021-01-30 17:08:04 +00:00
Alex Ling
9dcc9665ce Cancel a download job when deleted from web UI 2020-12-12 16:15:16 +00:00
Alex Ling
455315a362 Upgrade to Crystal 0.35.1 2020-12-11 07:46:47 +00:00
Alex Ling
85a65f84d0 Remove unnecessary "require" statements 2020-08-06 18:10:13 +00:00
Alex Ling
5e01cc38fe Fix downloaders 2020-08-04 11:36:36 +00:00
Alex Ling
a994c43857 Plugin downloader WIP 2020-07-22 09:09:02 +00:00
Alex Ling
92f5a90629 Move pop to the Downloader classes 2020-07-21 17:20:03 +00:00
Alex Ling
87b6e79952 Use macro to DRY the self.default method 2020-07-21 12:33:50 +00:00
Alex Ling
b75a838e14 Move common code to Queue::Downloader 2020-07-21 12:32:48 +00:00
Alex Ling
ae7c72ab85 Decouple Queue and related classes from MangaDex 2020-07-21 11:47:14 +00:00
Alex Ling
5be4f51d7e Name partially downloaded cbz files .part (#90) 2020-07-16 13:16:36 +00:00
Alex Ling
0035cd9177 Revert "Upgrade Crystal to 0.35.1"
Kemal is having some issues in 0.35.0: https://github.com/kemalcr/kemal/issues/575
2020-06-20 16:24:01 +00:00
Alex Ling
62af879bfa Upgrade Crystal to 0.35.1 2020-06-20 13:12:13 +00:00
Alex Ling
6b43ee7fe5 Add RAR/CBR support 2020-05-29 13:45:25 +00:00
Alex Ling
d416dc6618 Use rename when downloading 2020-05-17 06:29:13 +00:00
Alex Ling
7233e6e5c3 Type annotate the self.default methods 2020-05-17 06:28:33 +00:00
Alex Ling
7448592216 Optionally pass in db path for testing 2020-05-07 10:12:58 +00:00
Alex Ling
049bd3ab2c Fix long lines 2020-05-07 10:12:58 +00:00
Alex Ling
1bec9f0108 Use singleton in various classes 2020-05-07 10:12:58 +00:00
Alex Ling
09b297cd8e Add rename method to Manga and Chapter 2020-05-07 10:12:06 +00:00
Alex Ling
d6b22ef736 Don't return from DB blocks 2020-04-10 15:24:49 +00:00
Alex Ling
39f4897fc5 Set status as "Error" if downloaded zip is invalid
(#29)
2020-04-08 10:31:30 +00:00
Alex Ling
fcf9d39047 Project-wise refactoring to follow Ameba 2020-04-08 06:45:45 +00:00
Alex Ling
8b184ed48d Project-wise code formatting 2020-04-08 05:25:12 +00:00
Alex Ling
2c31f594a4 Use the new Log module in Crystal 0.34.0 2020-04-07 12:58:42 +00:00
Alex Ling
5400c8c8ef Fix a UI bug that shows "resume download" button on download manager even when the downloading process is not paused 2020-04-01 23:21:32 +00:00
Alex Ling
2c10623731 Formatting 2020-03-13 17:03:06 +00:00
Alex Ling
4ba81b9ffe Sort download jobs listed on the download manager by time 2020-03-11 19:28:04 +00:00
Alex Ling
e2d01f7eb9 Remove error handling in the parse_query_result method of
MangaDex::Job, and pass the possible exceptions to the frontend and
handle them there.
2020-03-03 02:33:32 +00:00
Alex Ling
7575785c1c Remove the unused get method from MangaDex::Queue 2020-03-03 02:32:08 +00:00
Alex Ling
dfd53bc51d Fix incorrect variable in MangaDex::Downloader (@stop -> @stopped) 2020-03-03 02:06:27 +00:00
Alex Ling
f140ffa4b2 Add and use MLogger in MangaDex::Queue and MangaDex::Downloader 2020-03-03 02:05:55 +00:00
Alex Ling
30af64e9ca Add pause/resume download button to the download manager 2020-03-02 16:30:05 +00:00
Alex Ling
f13f7989d5 Finish the download manager page 2020-03-02 01:50:04 +00:00
Alex Ling
c4253db572 Add status message to MangaDex::Job and improve formatting 2020-03-01 03:04:55 +00:00
Alex Ling
5d7bbc7c9b Remove @log from MangaDex::Job and save the @success_count and
@fail_count instead
2020-02-29 04:11:48 +00:00
Alex Ling
0b463539c9 Better log in MangaDex::API when status is not OK, and handles external
chapters
2020-02-29 04:10:09 +00:00
Alex Ling
f11a5cd608 Finish downloader 2020-02-28 17:36:21 +00:00
Alex Ling
6bccba16da Add MangaDex::PageJob and MangaDex::Downloader 2020-02-28 17:31:09 +00:00
Alex Ling
28ac5c7a00 Formatting in mangadex/api.cr 2020-02-28 17:17:57 +00:00
Alex Ling
f8e0c6d795 Remove download code from mangadex/api.cr, as the download functionality
is now handled by mangadex/downloader.cr
2020-02-28 17:15:55 +00:00
Alex Ling
e3d505d62b Add @full_title to MangaDex::Chapter 2020-02-28 17:14:38 +00:00
Alex Ling
e8c365b7a1 Rename module Mangadex to MangaDex 2020-02-28 16:48:48 +00:00
Alex Ling
fa50f4cb88 Delete the single job push method 2020-02-26 23:55:38 +00:00
Alex Ling
2dd980b92c Add mangadex/downloader.cr (implements MangaDex::Job and
MangaDex::Queue)
2020-02-26 17:41:50 +00:00
Alex Ling
89e747d3ee Get Chapter object directly from chapter ID 2020-02-26 17:31:53 +00:00
Alex Ling
468f109776 Add Manga object as a property of MangaDex::Chapter 2020-02-26 17:31:04 +00:00