altaccosc 0a0ff7c1ac Add Clown Corps comic source (#1808)
* Add ClownCorps comic source

* Apply suggestions from code review

Thank you very much!

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

* Only loop through the present pages

Don't just loop forever until a 404 is returned

* Disable reduntant sorting code

* Add date to chapters

* Apply suggestions from code review

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

* Remove commented snippet

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

* Move vars to companion obj & inline description

* Un-move some constants & Use Observable.just

* Extract SManga creation to separate function

And use where necessary

* Omit unnecessary function call

Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>

* Add caching

I've tried a great many different ways of caching today, and as far as I can reason with my fried brain, I think this one now works pretty well.
I shall continue testing it on my phone.

* Change SerializableChapter implementation

Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>

* Code cleanliness

Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>

* Optimise requests for page 1 away

* Explicitly sort chapters by upload date

* Move other preference options into separate functions

* Assume response document always contains what we're asking

And throw a runtime exception if it doesn't, so the problem can be noticed and fixed.

---------

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
2024-03-24 21:13:54 +00:00
..
2024-03-24 21:13:54 +00:00