Skip to content

Commit

Permalink
Merge pull request #74 from snehilrx/crash_fix
Browse files Browse the repository at this point in the history
fixed class cast exception in production
  • Loading branch information
snehilrx authored Jun 27, 2023
2 parents d311c9b + d176d90 commit 43e5cac
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ data class CrunchyRoll(
@SerializedName("chapters") var chapters: Chapters? = Chapters()
)

@Keep
data class Tracks(
@SerializedName("kind") var kind: String? = null,
@SerializedName("file") var file: String? = null,
@SerializedName("label") var label: String? = null,
@SerializedName("default") var default: Boolean? = null
)

@Keep
data class Sources(

@SerializedName("default") var default: Boolean? = null,
Expand All @@ -29,9 +31,8 @@ data class Sources(

)

@Keep
data class Chapters(

@SerializedName("defaultLanguage") var defaultLanguage: String? = null,
@SerializedName("timestamps") var timestamps: ArrayList<String> = arrayListOf()

)

0 comments on commit 43e5cac

Please sign in to comment.