Commit Graph

48 Commits

Author SHA1 Message Date
eddf50483f Fixed some nullable types 2023-05-22 21:44:52 +02:00
a71d65e666 Fix negative sleep time 2023-05-22 21:41:11 +02:00
30b6c4680b Better Rate-Limits
Added Logger to DownloadClient
2023-05-22 21:38:23 +02:00
01cb74c088 First attempt at #18 Rate Limits 2023-05-22 18:15:59 +02:00
ec480dffad Merge pull request 'closes #7' (#17) from Issue_7 into master
Reviewed-on: glax/Tranga#17
2023-05-22 17:21:42 +02:00
0e0ba1796e closes #7 2023-05-22 17:20:07 +02:00
27d8565dc1 fixes #14 2023-05-22 17:09:47 +02:00
a321ecb1bc string 2023-05-21 15:36:12 +02:00
d62b0bdf34 Changed Logger to accept string as caller
Added Logger to all relevant methods
2023-05-20 22:10:24 +02:00
4ee47ed65c Snarky comments. Documentation 2023-05-20 15:05:41 +02:00
ff01bac9d4 Changed ComicInfo.xml to use chapternumber as "Number". 2023-05-20 12:53:54 +02:00
e0784b2c38 Added field sortNumber to chapter 2023-05-20 02:39:23 +02:00
0afbfb6010 Add Volume and chapter number to ComicInfo.xml 2023-05-20 02:29:54 +02:00
9d583b284a Created Method to check wether file is already downloaded.
Using this method when running TaskExecutor.UpdateChapters to get a list of all chapters that have not yet been downloaded.
2023-05-20 01:30:23 +02:00
08e0fe7c71 We happy? We happy. Thanks ReSharper 2023-05-20 01:06:12 +02:00
9d104b25f8 Renamed some variables,
changed some access-types to protected/readonly
Made Resharper a bit happier
2023-05-20 01:06:00 +02:00
84542640dc Renamed Method GetSeriesInfo to GetSeriesInfoJson to avoid confusion with xml 2023-05-20 00:19:40 +02:00
a3520dfd77 Now adding ComicInfo.xml to chapterse 2023-05-20 00:19:04 +02:00
78d8deb9de Properly create directory, not file, ya doofus 2023-05-19 23:00:45 +02:00
26ef59ab42 Check if directory exists before creating 2023-05-19 22:58:59 +02:00
5bfd6bc196 Delete Tempfolder even with files in it. 2023-05-19 20:55:19 +02:00
bc99735f76 Download Cover and Create Series Info before Chapters.
Create Publication Directory when calling SaveSeriesInfo and DownloadCover
2023-05-19 20:55:04 +02:00
e499062fd5 Add more documentation 2023-05-19 20:22:13 +02:00
a988d54619 Cleanup temp-dir after download 2023-05-19 20:14:21 +02:00
ea6026101b Added Summaries to Chapter and Connector
Made some methods static
2023-05-19 19:52:24 +02:00
95eca6e1da Moved _downloadClient initialization from inherited Connector Classes to Connector-Main class. 2023-05-19 19:50:26 +02:00
881caafd43 Moved DownloadImage Method to Connector. 2023-05-19 19:44:59 +02:00
d659a26987 Fixed bug when adding task, that Publication was not added to known publications.
Fixed issue, that chapters would be re-downloaded
2023-05-19 18:20:26 +02:00
9baa9fb8f0 Amended SaveSeriesInfo to not constantly rewrite info 2023-05-19 16:25:08 +02:00
9aa822b900 Created SaveSeriesInfo in Connector 2023-05-19 16:19:10 +02:00
db5470769c Changed accessiblity of DownloadChapter(string[] imageUrls, string saveArchiveFilePath) to protected so only inherited classes can call. 2023-05-18 20:57:45 +02:00
glax
c283cbd9a9 Added download cover functionality 2023-05-18 19:56:06 +02:00
glax
f92bcebe04 renamed variable 2023-05-18 19:55:49 +02:00
glax
cd061d23fc renamed variable 2023-05-18 19:55:18 +02:00
glax
88e5379e25 Cleanup 2023-05-18 19:04:34 +02:00
glax
a1bd85daa5 Moved field downloadLocation to abstract Connector class. 2023-05-18 18:51:19 +02:00
glax
d46b46f8fb Create Publication Folder and replace downloaded files if necessary. 2023-05-18 18:43:22 +02:00
glax
170d0c094c Added functionality to only list chapters in selected language 2023-05-18 18:19:04 +02:00
glax
ada842957e Added file extension to downloaded Images. 2023-05-18 17:42:02 +02:00
glax
81f380dc3c Renamed fields to match private naming style.
Fixed issue where _lastRequest in DownloadClient was not updated.
2023-05-18 17:41:44 +02:00
glax
9a01db710b Fixed illegal characters in filenames
Fixed logic for downloading images (separation between Connector and inherited classes)
2023-05-18 17:21:06 +02:00
glax
93bb8ef6ee Added delay functionality for rate-limits 2023-05-18 17:20:01 +02:00
glax
b54ac730b7 Added Image download and compression to archive to Connector. 2023-05-18 16:42:00 +02:00
glax
c3cb4d6e08 Add optional value to search for Manga instead of downloading all
GetPublications(string = null)
2023-05-18 16:41:14 +02:00
glax
b15e032038 Add field downloadLocation to Connector to save archives. 2023-05-18 16:40:23 +02:00
glax
317d1435f3 Add Publication to DownloadChapter Method, to later correctly save images. 2023-05-18 16:21:02 +02:00
glax
aa6d2d64bd Changed prototypes for GetPublications, GetChapters and DownloadChapter to return the value instead of using out. 2023-05-18 15:47:48 +02:00
glax
d6ec91c896 Moved files
Added DownloadClient to Connector
2023-05-18 12:26:15 +02:00