Skip to content

Commit 767c702

Browse files
authored
bump: jellyfin version id (#107)
* bump jellyfin version id * chore: changelog
1 parent ee4953b commit 767c702

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
1818
### Fixed
1919
- Fix formatting of file size ([@Quickdev](https://github.com/quickdesh)) ([`958e245`](https://github.com/quickdesh/Animiru/commit/958e245))
2020
- Don't overwrite episodes.json with anime details for localanime ([@Secozzi](https://github.com/Secozzi)) ([#96](https://github.com/quickdesh/Animiru/pull/96))
21+
- Fix jellyfin enhanced tracker for newer versions of the extension ([@Secozzi](https://github.com/Secozzi)) ([#107](https://github.com/quickdesh/Animiru/pull/107))
2122

2223
### Other
2324
- Merged from Aniyomi and Mihon ([@Secozzi](https://github.com/Secozzi)) ([#102](https://github.com/quickdesh/Animiru/pull/102))

app/src/main/java/eu/kanade/tachiyomi/data/track/jellyfin/JellyfinApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class JellyfinApi(
4242
}.apply { tracking_url = url }
4343

4444
when {
45-
fragment.startsWith("seriesId") -> {
45+
fragment.startsWith("season") -> {
4646
getTrackFromSeries(track, httpUrl)
4747
}
4848
else -> track

app/src/main/java/eu/kanade/tachiyomi/data/track/jellyfin/JellyfinInterceptor.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class JellyfinInterceptor : Interceptor {
4343
}
4444

4545
private fun getId(suffix: Int): Long {
46-
val key = "jellyfin" + (if (suffix == 1) "" else " ($suffix)") + "/all/$JELLYFIN_VERSION_ID"
46+
val key = "jellyfin ($suffix)/all/$JELLYFIN_VERSION_ID"
4747
val bytes = MessageDigest.getInstance("MD5").digest(key.toByteArray())
4848
return (0..7).map { bytes[it].toLong() and 0xff shl 8 * (7 - it) }
4949
.reduce(Long::or) and Long.MAX_VALUE
@@ -68,7 +68,7 @@ class JellyfinInterceptor : Interceptor {
6868
}
6969

7070
companion object {
71-
private const val JELLYFIN_VERSION_ID = 1
71+
private const val JELLYFIN_VERSION_ID = 2
7272
private const val MAX_JELLYFIN_SOURCES = 10
7373
}
7474
}

0 commit comments

Comments
 (0)