148 Commits

Author SHA1 Message Date
Alex Ling
54206bc6ac Finish the test cases for MangaDex::Queue 2020-03-04 01:52:17 +00:00
Alex Ling
1abdac2fdd Better state management in spec and add some tests for MangaDex::Queue 2020-03-03 18:34:39 +00:00
Alex Ling
9ffe896705 Only log the "baking dist/" message when building for release 2020-03-03 02:51:45 +00:00
Alex Ling
7a7c855ce4 Remove the unused gzip import from static_handler.cr 2020-03-03 02:51:09 +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
589483cd75 Center the message on message.ecr 2020-03-02 16:55:08 +00:00
Alex Ling
306edc3c77 Handle HTTP 404 and 500 errors 2020-03-02 16:54:29 +00:00
Alex Ling
30af64e9ca Add pause/resume download button to the download manager 2020-03-02 16:30:05 +00:00
Alex Ling
fecb96c91b Redirect to the download manager after adding jobs to the queue 2020-03-02 02:10:01 +00:00
Alex Ling
4f01aba3e1 Add link to the download manager page on the admin page 2020-03-02 01:57:09 +00:00
Alex Ling
f13f7989d5 Finish the download manager page 2020-03-02 01:50:04 +00:00
Alex Ling
1ce553f541 Add the /admin/downloads page for monitoring download queue 2020-03-01 03:05:40 +00:00
Alex Ling
c4253db572 Add status message to MangaDex::Job and improve formatting 2020-03-01 03:04:55 +00:00
Alex Ling
8fbc5528a8 Move the JS alert function definition to /js/alert.js and move the alert div to views/layout.ecr 2020-03-01 01:23:16 +00:00
Alex Ling
d50804830d Merge branch 'master' into v0.2.0 2020-02-29 17:50:38 +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
7f0088f45a Fix typo (embeded -> embedded) 2020-02-29 00:08:27 +00:00
Alex Ling
5645f272df When an invalid zip file is found, instead of ignoring it silently, log
a warning message
v0.1.2
2020-02-28 18:08:56 +00:00
Alex Ling
dc3bbd10d6 Close zip file after listing entries to prevent leaking 2020-02-28 17:55:45 +00:00
Alex Ling
c89c74c71b Bump version to 0.1.2 2020-02-28 17:53:35 +00:00
Alex Ling
cb76a96126 Removing the logging of the library json on scan 2020-02-28 17:52:50 +00:00
Alex Ling
73b38492ba Remove console in minified JS files 2020-02-28 17:52:14 +00:00
Alex Ling
bf37c4aa10 Sorting in library and title page 2020-02-28 17:51:26 +00:00
Alex Ling
f837be0718 Ignore invalid zip files in library 2020-02-28 17:45:30 +00:00
Alex Ling
8c47d50291 Update download API to use Queue in Context and use @full_title 2020-02-28 17:38:45 +00:00
Alex Ling
4ca8daca29 Add API to fetch download queue 2020-02-28 17:38:08 +00:00
Alex Ling
d3d8dff6d2 Add MangaDex::Queue to Context 2020-02-28 17:37:08 +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
77864afa67 Removing the logging of the library json on scan 2020-02-28 16:55:39 +00:00
Alex Ling
5abdca24c2 Ignore invalid zip files in library 2020-02-28 16:54:37 +00:00
Alex Ling
e8c365b7a1 Rename module Mangadex to MangaDex 2020-02-28 16:48:48 +00:00
Alex Ling
6659041631 Allow missing keys in the "mangadex" dictionary in the config file 2020-02-28 16:24:46 +00:00
Alex Ling
fa50f4cb88 Delete the single job push method 2020-02-26 23:55:38 +00:00
Alex Ling
c39a1ddbaf Merge branch 'master' into v0.2.0 2020-02-26 18:26:49 +00:00
Alex Ling
7de01991a0 Fix the problem that all chapters (regardless of selections) will be
posted to the API
2020-02-26 18:20:14 +00:00
Alex Ling
319967438b Merge branch 'master' into v0.2.0 2020-02-26 18:19:30 +00:00
Alex Ling
1bbb08eede Show spinner and hide download button when posting to API 2020-02-26 17:46:28 +00:00
Alex Ling
d9d1dbc26f Post selected chapter JSON object to API, instead of just posting the
IDs
2020-02-26 17:45:37 +00:00
Alex Ling
c33884ea29 Add mangadex download enpoint to API 2020-02-26 17:42:40 +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