54 Commits

Author SHA1 Message Date
Aiman
dcb8be1157
Komga: Update to extension-lib 1.4 (#15557)
* Komga: Update to extension-lib 1.4

* Simplify OkHttp responses
2023-03-05 16:44:22 -05:00
Gauthier
df601fdade
[Komga] don't display password in plain text, custom source name (#15037)
* don't display password in preference summary

* add preference for source display name
decouple title from key for preferences
2023-01-20 10:12:20 -05:00
Gauthier
04f8307fd9
move date formatters to KomgaHelper (#14989)
apply UTC timezone to formatters
return time as 0 if parsing fails
2023-01-17 06:24:20 -05:00
Alessandro Jean
997b3e2e68
Fix requests failing in Komga. (#13704) 2022-10-03 18:35:31 -03:00
Gauthier
a4d0c214d8
[Komga] fix default sort and readlist sort (#12782)
* fix(komga): default sort broken since Komga 0.155.1

* fix(komga): proper sort criteria for readlists

* update CHANGELOG.md

* bump version
2022-07-29 23:01:07 -04:00
Aiman
5d6e61eb2a
Komga: Improve status parsing (#12728)
* Komga: Improve status parsing

* Set null as default value for totalBookCount

* Apply suggestion

* Update changelog
2022-07-27 14:12:08 -03:00
arkon
a8cb5c2794
Mark self-hosted sources as unmetered (#12077) 2022-06-05 11:49:11 -04:00
Andreas
5145eec280
Re: Use Gradle version catalog to simplify dependencies (#10953)
* Use Gradle version catalog to simplify dependencies

* Changes based on review comments

* Remove libs variables in buildScript

- Not needed in this Gradle version
2022-02-28 07:25:23 -05:00
arkon
985f285fc7 Revert "Use Gradle version catalog to simplify dependencies (#10938)"
This reverts commit c83960aaef817b263c8466d2207b90289b4cbc90.
2022-02-27 09:53:18 -05:00
Andreas
c83960aaef
Use Gradle version catalog to simplify dependencies (#10938)
* Use Gradle version catalog to simplify dependencies

* Changes based on review comments
2022-02-27 09:49:41 -05:00
Gauthier
2a793c16ac
feat: prepend series title in front of book name for read lists (#10831) 2022-02-15 07:38:30 -05:00
jopejoe1
b7a1f920fa
Komga: Added README file (#10566)
* Update CHANGELOG.md

* Create README.md

* Update build.gradle

* Update CHANGELOG.md
2022-01-24 07:47:32 -05:00
Andreas
ca9645288f
Add extension fields for hasReadme and hasChangelog (#10469)
* Add extension fields for hasReadme and hasChangelog

* Dump Komga extVersionCode
2022-01-22 09:48:52 -05:00
Gauthier
7719c36305
[Komga] add support for image/jxl (#10194)
* feat: add support for image/jxl

* update changelog and version
2021-12-22 08:16:15 -05:00
Gauthier
d718c8a10f
feat(komga): display book translators as chapter scanlator (#10099) 2021-12-14 05:52:52 -05:00
Gauthier
0a0b8bd7a3
[Komga] rework the load of filter values at startup (#9386)
* rework the load of filter values at startup

* Update CHANGELOG.md
2021-10-07 07:14:08 -04:00
nicki
c04984b89b
[Komga] Fix link to WebView/Share (#9361)
* use the correct link for viewing in browser

api url on browser just provides a json. For viewing in browser,
we need the normal url instead

* just use `substringAfter`

was trying out another way using `substringAfterLast` but dropped that.
Now `substringAfterLast` isn't required and `substringAfter` suffices

* make fetchMangaDetails not use mangaDetailsRequest

internally, `fetchMangaDetails` uses `mangaDetailsRequest` to create a
new call. However, since `mangaDetailsRequest` is now fixed to use a
normal browser URL rather than the API URL, it no longer works for
`fetchMangaDetails`. So, it needs to be manually overriden to make its
own call

* use hardcoded ID values instead of computing

this was done because of the following:
 - IDs are same as before
 - no need to rely on calculation to be correct everytime
 - avoids unnecessary copy of base class code
 - sets it in the constructor itself

* increment komga.extVersionCode

also update CHANGELOG with list of changes

* linting and remove unused imports

* Revert "linting and remove unused imports"

This reverts commit e13396badef53fced2700266182bbf53a67124cf.

* Revert "use hardcoded ID values instead of computing"

This reverts commit 44f063904d5969fb6d90c9ffad5c33aff50b995f.

* refactor `mangaDetailsRequest`

Do it in a simpler manner without having to create another variable

Co-authored-by: Gauthier <gotson@users.noreply.github.com>

Co-authored-by: Gauthier <gotson@users.noreply.github.com>
2021-10-06 06:06:37 -04:00
Gauthier
1c53f50265
[Komga] change language to all, add more logs (#9360)
* change lang to all, but keep existing id

* properly close response bodies
add more logs
2021-10-04 07:31:52 -04:00
nicki
95ad8cb431
[Komga] replace gson with kotlinx.serialization.json (#9107)
* annotate komga data classes

annotate @Serializable to relevant data classes. this is the first step
to replace gson/kotson with kotlinx.serialization

* switch to kotlinx.serialization.json

replaces gson/kotson usage in komga extension
big thanks to gotson for already switching to data classes
made the conversion very simple

Co-authored-by: Gauthier <gotson@users.noreply.github.com>

* linting

* increment komga.extversioncode

also update changelog

* use .string() instead of toString()

since we actually need the object in memory as a string rather than the
content

* apply plugin to generate Serializable

this makes serializers for all data classes that are annotated as
Serializable

Co-authored-by: Gauthier <gotson@users.noreply.github.com>
2021-09-18 05:39:18 -04:00
arkon
bc7d8c8672
Default libVersion to 1.2 (#9014) 2021-09-09 08:58:17 -04:00
Gauthier
a80e03cf4e
[Komga] show readlist summary, search and display series aggregated tags (#8489)
* display and search aggregated book tags at series level

* display readlist summary

* bump version
2021-08-09 06:57:38 -04:00
Gauthier
3ff3a4f82f
filter deleted series and books (#8132) 2021-07-16 06:23:22 -04:00
Gauthier
5876f259c8
fix user-agent (#7865) 2021-06-25 08:45:53 -04:00
Gauthier
380b7594f5
filter series by in progress and read (#7446) 2021-06-04 07:38:57 -04:00
Gauthier
aeae87d57f
search for in progress and unread when unread only is selected (#7141) 2021-05-21 08:38:58 -04:00
Gauthier
c4f382f0dc
fix readlist chapters sort (#6944) 2021-05-10 06:52:45 -04:00
Gauthier
3cd9bb0abb
[Komga] fix restoring backup & tags in filter panel (#6736)
* fix: set full url for manga so restoring a backup can work

* fix: only show series tags in the filter panel
2021-04-28 08:43:55 -04:00
Gauthier
7655bf6483
feat(komga): ignore dns over https (#6335) 2021-03-29 07:04:40 -04:00
Gauthier
1ac4721780
fix: logs and try/catch (#6092)
exception catching while building filter list (#6074)
error logs whiloe loading filter values (#6047)
2021-03-07 22:10:53 -05:00
Gauthier
7a667d78ed
feat: browse readlists and collections (#6038) 2021-03-02 10:43:12 -05:00
Gauthier
6a813c9ab8
feat: filter by authors (#6014) 2021-03-01 07:27:37 -05:00
Gauthier
b24fa5b9b6
[Komga] Display book aggregated data on Series screen (#5550)
* display Series summary from books if no summary exists for Series

closes gotson/komga#391

* display Series authors

closes #5481
2021-01-25 07:27:53 -05:00
Gauthier
89cea3e023
use metadata.releaseDate or fileLastModified for chapter date (#4682) 2020-10-22 08:35:43 -04:00
Gauthier
61f16d26e9
filter by genres, tags and publishers (#4519) 2020-10-08 17:56:45 -04:00
Gauthier
6e5772ecfd
filter by genres, tags and publishers (#4211) 2020-08-26 06:20:47 -04:00
Gauthier
fcff37890d
[Komga] metadata update (#4194)
* clarify changelog

* remove the 1000 chapters limit

* remove old dto (was required before Komga 0.48.0)
align to new metadata model (Komga 0.58.0)
add description and genre for Series
2020-08-24 07:14:32 -04:00
Gauthier
4406f91f7e
[Komga] change chapter display to use title string instead of title number (#4121)
* change chapter display to use title string instead of title number

* version bump and changelog
2020-08-14 07:56:26 -04:00
Gauthier
7a9de141d2
compatibility for the upcoming version of Komga which have changes in the API (IDs are String instead of Long) (#3792) 2020-07-15 06:01:46 -04:00
Gauthier
1556685031
filter by collection (#3620)
add CHANGELOG.md

closes gotson/komga#211
2020-06-26 13:43:31 -04:00
arkon
023c26b4a0 Make "Tachiyomi" app name prefix implicit 2020-06-25 22:46:15 -04:00
arkon
14e644d358 Set password preferences inputTypes 2020-06-06 13:02:53 -04:00
Gauthier
af8fd27c25
[Komga] unread only filter, prefix book titles (#3418)
* unread only filter, prefix book titles

closes gotson/komga#169, gotson/komga#180

* fix linting issues
2020-06-06 12:59:18 -04:00
arkon
efc1877172
Move common app-provided dependencies to common.gradle (#3214) 2020-05-17 16:50:53 -04:00
arkon
dbcb0117cd Remove preference-stub (moved into extension-lib 1.2) 2020-05-09 11:43:41 -04:00
Gauthier
facc1d7bfd
use SourceFactory to have multiple Komga servers (3 for the moment) (#2707)
while waiting for https://github.com/inorichi/tachiyomi/pull/2196 this should suffice for most users
2020-04-19 09:22:24 -04:00
arkon
228178f3a0 Use consistent Gson version for stable compatibility 2020-03-29 12:24:28 -04:00
Gauthier
bc49af1d14
use Book title instead of name (#2459)
use Book numberSort instead of number
2020-03-20 05:47:21 -04:00
Gauthier
0e59671851
[Komga] series metadata (#2197)
* handle Series status
add filter for Series status

* use Series title instead of name
sort by titleSort instead of name
2020-02-06 06:54:30 -05:00
arkon
98df581cfd
Add support for AndroidX preferences (#1971)
* Add stubs for AndroidX preferences

* Update extensions for AndroidX preferences
2020-01-05 11:16:12 -05:00
Gauthier
1fcd650001 [Komga] API update + Sort options (#1946)
* use updated Komga API (closes gotson/komga#31, closes gotson/komga#32)

* only retrieve books in READY state (was previously handled server side by default)

* add sort options to Series search (closes gotson/komga#33)
2019-12-30 23:09:35 -05:00