Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
LagradOst committed Sep 14, 2023
1 parent 2bed79b commit 6957a8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ android {
minSdk = 21
targetSdk = 33

versionCode = 59
versionName = "4.1.8"
versionCode = 60
versionName = "4.1.9"

resValue("string", "app_version", "${defaultConfig.versionName}${versionNameSuffix ?: ""}")
resValue("string", "commit_hash", "git rev-parse --short HEAD".execute() ?: "")
Expand Down
9 changes: 8 additions & 1 deletion app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ object APIHolder {

private var trackerCache: HashMap<String, AniSearch> = hashMapOf()

/** backwards compatibility, use getTracker4 instead */
suspend fun getTracker(
titles: List<String>,
types: Set<TrackerType>?,
year: Int?,
): Tracker? = getTracker(titles, types, year, false)

/**
* Get anime tracker information based on title, year and type.
* Both titles are attempted to be matched with both Romaji and English title.
Expand All @@ -192,7 +199,7 @@ object APIHolder {
titles: List<String>,
types: Set<TrackerType>?,
year: Int?,
lessAccurate: Boolean = false
lessAccurate: Boolean
): Tracker? {
return try {
require(titles.isNotEmpty()) { "titles must no be empty when calling getTracker" }
Expand Down

0 comments on commit 6957a8f

Please sign in to comment.