Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #8 from Dark25/fix(tr/tranimeci)
Browse files Browse the repository at this point in the history
fix(tr/tranimeci): Fix anime details page + implement search by name
  • Loading branch information
Dark25 authored Jul 27, 2024
2 parents 49b0db8 + 71709f1 commit 9978eb4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/all/googledrive/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Google Drive'
extClass = '.GoogleDrive'
extVersionCode = 15
extVersionCode = 16
}

apply from: "$rootDir/common.gradle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.ProtocolException
import okhttp3.Request
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.Response
import okhttp3.internal.commonEmptyRequestBody
import okio.ProtocolException
import org.jsoup.nodes.Document
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
Expand Down
2 changes: 1 addition & 1 deletion src/tr/tranimeci/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ext {
extClass = '.TRAnimeCI'
themePkg = 'animestream'
baseUrl = 'https://tranimaci.com'
overrideVersionCode = 1
overrideVersionCode = 2
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class TRAnimeCI : AnimeStream(
.addIfNotBlank("season[]", params.season)
.addIfNotBlank("format[]", params.type)
.addIfNotBlank("studio[]", params.studio)
.addIfNotBlank("name", query)
.build()

return GET(url.toString(), headers)
Expand Down Expand Up @@ -99,6 +100,7 @@ class TRAnimeCI : AnimeStream(
// =========================== Anime Details ============================
override val animeDetailsSelector = "div.infox"
override val animeStatusText = "Durum"
override val animeTitleSelector = ".entry-title"

override fun parseStatus(statusString: String?): Int {
return when (statusString?.trim()?.lowercase()) {
Expand Down

0 comments on commit 9978eb4

Please sign in to comment.