Merge pull request #13 from dear-clouds/master

Fix the token for the action and add comics support in Reading Lists
This commit is contained in:
Joe Milazzo
2025-06-28 11:41:16 -05:00
committed by GitHub
3 changed files with 42 additions and 26 deletions

View File

@@ -63,7 +63,7 @@ jobs:
- id: generate-matrices
name: Create output matrices
run: |
python ./.github/scripts/generate-build-matrices.py ${{ steps.last_successful_ci_commit.outputs.base }} Release
echo "matrix={\"chunk\":[{\"number\":1,\"modules\":[\"src:all:kavita:assembleRelease\"]}]}" >> $GITHUB_OUTPUT
build:
name: Build extensions (${{ matrix.chunk.number }})
@@ -89,7 +89,10 @@ jobs:
- name: Prepare signing key
run: |
echo ${{ secrets.SIGNING_KEY }} | base64 -d > signingkey.jks
echo "${{ secrets.SIGNING_KEY }}" | base64 -di > signingkey.jks
# Verify key is properly created
ls -la signingkey.jks
keytool -list -v -keystore signingkey.jks -storepass "${{ secrets.KEY_STORE_PASSWORD }}" -alias "${{ secrets.ALIAS }}" || exit 1
- name: Build extensions (${{ matrix.chunk.number }})
env:
@@ -146,7 +149,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: Kareadita/tach-extension
token: ${{ secrets.BOT_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
ref: repo
path: repo

View File

@@ -1,23 +1,32 @@
| Build | Up to date | Install to app |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [![Build](https://github.com/Kareadita/tach-extensions/actions/workflows/build_push.yml/badge.svg)](https://github.com/Kareadita/tach-extensions/actions/workflows/build_push.yml) | [![Updated](https://img.shields.io/github/actions/workflow/status/Kareadita/tachiyomi-extensions/auto_cherry_pick.yml?label=Updated&labelColor=27303D)](https://github.com/Kareadita/tachiyomi-extensions/actions/workflows/auto_cherry_pick.yml) | [![Install](https://img.shields.io/badge/Click%20here%20to%20install%20repo-gray?style=flat&labelColor=red)](https://intradeus.github.io/http-protocol-redirector/?r=tachiyomi://add-repo?url=https://raw.githubusercontent.com/Kareadita/tach-extensions/repo/index.min.json) |
<p align="center">
<a href="https://github.com/Kareadita/tach-extensions/actions/workflows/build_push.yml">
<img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/Kareadita/tach-extensions/build_push.yml?label=Build&style=for-the-badge">
</a>
<a href="https://github.com/Kareadita/tach-extensions/releases/latest">
<img alt="Current Version" src="https://img.shields.io/github/v/release/Kareadita/tach-extensions?label=Current%20Version&style=for-the-badge&color=5A4FCF&labelColor=5A4FCF">
</a>
<a href="https://intradeus.github.io/http-protocol-redirector/?r=tachiyomi://add-repo?url=https://raw.githubusercontent.com/Kareadita/tach-extensions/repo/index.min.json">
<img alt="Install Kavita Extension" src="https://img.shields.io/badge/Install%20Kavita%20Extension-49CC90?style=for-the-badge&logo=cloudsmith&logoColor=white&labelColor=49CC90&color=49CC90">
</a>
</p>
# Kavita Extension
This repository contains the Kavita extension which is compatible with [Komikku](https://github.com/komikku-app/komikku) and Mihon / Tachiyomi or other forks.
This repository contains the Kavita extension, compatible with [Komikku](https://github.com/komikku-app/komikku), [Mihon](https://github.com/mihonapp/mihon), Tachiyomi, and other forks.
## Recommend App
## Recommended Apps
### [Mihon](https://github.com/mihonapp/mihon)
### - [Mihon](https://github.com/mihonapp/mihon)
### [Komikku](https://github.com/komikku-app/komikku)
### - [Komikku](https://github.com/komikku-app/komikku)
## How to add the repo
[![Install](https://img.shields.io/badge/Click%20here%20to%20install%20repo-gray?style=flat&labelColor=red)](https://intradeus.github.io/http-protocol-redirector/?r=tachiyomi://add-repo?url=https://raw.githubusercontent.com/Kareadita/tach-extensions/repo/index.min.json)
Otherwise, copy & paste the following URL:
[![Install](https://img.shields.io/badge/Install%20Kavita%20Extension-49CC90?style=for-the-badge&logo=cloudsmith&logoColor=white&labelColor=49CC90&color=49CC90)](https://intradeus.github.io/http-protocol-redirector/?r=tachiyomi://add-repo?url=https://raw.githubusercontent.com/Kareadita/tach-extensions/repo/index.min.json)
```html
Or copy & paste this URL into your app:
```
https://raw.githubusercontent.com/Kareadita/tach-extensions/repo/index.min.json
```
@@ -60,7 +69,6 @@ limitations under the License.
This project does not have any affiliation with the content providers available.
This project is not affiliated with Komikku/Mihon/Tachiyomi. Don't ask for help about these extensions at the
official support means of Komikku/Mihon/Tachiyomi. All credits to the codebase goes to the original contributors.
This project is not affiliated with Komikku/Mihon/Tachiyomi. Don't ask for help about these extensions at the official support means of Komikku/Mihon/Tachiyomi. All credits to the codebase goes to the original contributors.
The developer of this application does not have any affiliation with the content providers available.

View File

@@ -350,17 +350,22 @@ class Kavita(private val suffix: String = "") : ConfigurableSource, UnmeteredSou
}
name = buildString {
append("${item.order + 1}. ")
if (item.chapterId != null && item.chapterId > 0) {
if (item.chapterTitleName.isNullOrBlank()) {
item.chapterNumber
?.takeIf { it.isNotBlank() && it != "-100000" }
?.let { append(" Chapter $it") }
when {
!item.chapterTitleName.isNullOrBlank() && !item.chapterTitleName.matches(Regex("^\\d+\$")) -> {
append(item.chapterTitleName)
}
!item.volumeNumber.isNullOrBlank() && item.volumeNumber != "-100000" -> {
append("Volume ${item.volumeNumber.padStart(2, '0')}")
}
!item.chapterNumber.isNullOrBlank() && item.chapterNumber != "-100000" -> {
val libraryType = getLibraryType(item.seriesId)
when (libraryType) {
LibraryTypeEnum.Comic, LibraryTypeEnum.ComicVine ->
append("Issue #${item.chapterNumber.padStart(3, '0')}")
else ->
append("Chapter ${item.chapterNumber.padStart(2, '0')}")
}
}
item.chapterTitleName
?.takeIf { it.isNotBlank() }
?.let { append(it) }
} else if (!item.volumeNumber.isNullOrBlank()) {
append(" (Vol.${item.volumeNumber})")
}
}
date_upload = if (preferences.RdDate && !item.releaseDate.isNullOrBlank()) {
@@ -369,7 +374,7 @@ class Kavita(private val suffix: String = "") : ConfigurableSource, UnmeteredSou
0L // Explicitly unset the date
}
chapter_number = item.order.toFloat()
scanlator = item.seriesName + " #" + (item.chapterNumber?.padStart(3, '0') ?: "") // For Comics #000
scanlator = item.seriesName
}
}.sortedBy { it.chapter_number }
}