Skip to content

Commit fd7f90f

Browse files
committed
fix crashing for some extensions
1 parent dc8d1af commit fd7f90f

5 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
I acknowledge that:
44

55
- I have updated:
6-
- To the latest version of the app (stable is v0.12.3.8)
6+
- To the latest version of the app (stable is v0.12.3.9)
77
- All extensions
88
- If this is an issue with an anime extension, that I should be opening an issue in https://github.com/jmir1/aniyomi-extensions
99
- I have searched the existing issues and this is new ticket **NOT** a duplicate or related to another open issue

.github/ISSUE_TEMPLATE/report_issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ body:
5252
label: Aniyomi version
5353
description: You can find your Aniyomi version in **More → About**.
5454
placeholder: |
55-
Example: "0.12.3.8"
55+
Example: "0.12.3.9"
5656
validations:
5757
required: true
5858

@@ -97,7 +97,7 @@ body:
9797
required: true
9898
- label: I have tried the [troubleshooting guide](https://aniyomi.jmir.xyz/help/guides/troubleshooting/).
9999
required: true
100-
- label: I have updated the app to version **[0.12.3.8](https://github.com/jmir1/aniyomi/releases/latest)**.
100+
- label: I have updated the app to version **[0.12.3.9](https://github.com/jmir1/aniyomi/releases/latest)**.
101101
required: true
102102
- label: I have updated all installed extensions.
103103
required: true

.github/ISSUE_TEMPLATE/request_feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ body:
3232
required: true
3333
- label: If this is an issue with an extension, I should be opening an issue in the [extensions repository](https://github.com/jmir1/aniyomi-extensions/issues/new/choose).
3434
required: true
35-
- label: I have updated the app to version **[0.12.3.8](https://github.com/jmir1/aniyomi/releases/latest)**.
35+
- label: I have updated the app to version **[0.12.3.9](https://github.com/jmir1/aniyomi/releases/latest)**.
3636
required: true
3737
- label: I will fill out all of the requested information in this form.
3838
required: true

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
minSdk = AndroidConfig.minSdk
3131
targetSdk = AndroidConfig.targetSdk
3232
versionCode = 72
33-
versionName = "0.12.3.8"
33+
versionName = "0.12.3.9"
3434

3535
buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"")
3636
buildConfigField("String", "COMMIT_SHA", "\"${getGitSha()}\"")

app/src/main/java/eu/kanade/tachiyomi/animesource/model/Video.kt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,28 @@ import okhttp3.Headers
66
import rx.subjects.Subject
77
import tachiyomi.animesource.model.VideoUrl
88

9+
data class Track(val url: String, val lang: String)
10+
911
open class Video(
1012
val url: String = "",
1113
val quality: String = "",
1214
var videoUrl: String? = null,
1315
@Transient var uri: Uri? = null, // Deprecated but can't be deleted due to extensions
14-
val headers: Headers? = null
16+
val headers: Headers? = null,
17+
// "url", "language-label-2", "url2", "language-label-2"
18+
val subtitleTracks: List<Track> = emptyList(),
19+
val audioTracks: List<Track> = emptyList(),
1520
) : ProgressListener {
1621

22+
constructor(
23+
url: String,
24+
quality: String,
25+
videoUrl: String?,
26+
headers: Headers? = null,
27+
subtitleTracks: List<Track> = emptyList(),
28+
audioTracks: List<Track> = emptyList(),
29+
) : this(url, quality, videoUrl, null, headers, subtitleTracks, audioTracks)
30+
1731
@Transient
1832
@Volatile
1933
var status: Int = 0

0 commit comments

Comments
 (0)