Repository: libre-tube/LibreTube

Issue #4884: DateTimeFormatException when opening video
Created: 2023-10-03T18:19:08Z
Steps to reproduce

Watch a video
Close the app
Come back on the app
Start the video again

Expected behavior
Video should resume.
Actual behavior
App crashes.
LibreTube version
0.18.1
Android version
Android 13
Other details
kotlinx.datetime.DateTimeFormatException: j$.time.format.DateTimeParseException: Text '2023-10-02T07:17:47-07:00' could not be parsed, unparsed text found at index 10
at kotlinx.datetime.LocalDate$Companion.parse(SourceFile:20)
at kotlinx.datetime.serializers.LocalDateIso8601Serializer.deserialize(SourceFile:15)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:68)
at okio._UtilKt.decodeSerializableElement(SourceFile:11)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableElement(SourceFile:50)
at com.github.libretube.api.obj.Streams$$serializer.deserialize(SourceFile:555)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:68)
at kotlinx.serialization.json.Json.decodeFromString(SourceFile:26)
at com.jakewharton.retrofit2.converter.kotlinx.serialization.DeserializationStrategyConverter.convert(SourceFile:33)
at retrofit2.OkHttpCall.parseResponse(SourceFile:57)
at retrofit2.OkHttpCall$1.onResponse(SourceFile:5)
at androidx.appcompat.app.AlertController$2.onSuccess(SourceFile:34)
at androidx.work.Worker$2.run(SourceFile:131)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@a7af0ae, Dispatchers.IO]
Caused by: j$.time.format.DateTimeParseException: Text '2023-10-02T07:17:47-07:00' could not be parsed, unparsed text found at index 10
at j$.time.format.DateTimeFormatter.parseResolved0(Unknown Source:160)
at j$.time.format.DateTimeFormatter.parse(Unknown Source:11)
at j$.time.LocalDate.parse(Unknown Source:10)
at j$.time.LocalDate.parse(Unknown Source:2)
at kotlinx.datetime.LocalDate$Companion.parse(SourceFile:6)
... 15 more
Acknowledgements

 I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
 I have written a short but informative title.
 I will fill out all of the requested information in this form.

Duplicate issue #4909: App crashes as soon as video is played
Created: 2023-10-06T07:04:40Z
Steps to reproduce
the app worked fine till few days back, but now it constantly crashes as soon as i click on any video
Expected behavior
Video should play fine
Actual behavior
app crashes and returns this log
kotlinx.datetime.DateTimeFormatException: j$.time.format.DateTimeParseException: Text '2023-10-05T22:30:19-07:00' could not be parsed, unparsed text found at index 10
at kotlinx.datetime.LocalDate$Companion.parse(SourceFile:20)
at kotlinx.datetime.serializers.LocalDateIso8601Serializer.deserialize(SourceFile:15)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:68)
at okio._UtilKt.decodeSerializableElement(SourceFile:11)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableElement(SourceFile:50)
at com.github.libretube.api.obj.Streams$$serializer.deserialize(SourceFile:555)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:68)
at kotlinx.serialization.json.Json.decodeFromString(SourceFile:26)
at com.jakewharton.retrofit2.converter.kotlinx.serialization.DeserializationStrategyConverter.convert(SourceFile:33)
at retrofit2.OkHttpCall.parseResponse(SourceFile:57)
at retrofit2.OkHttpCall$1.onResponse(SourceFile:5)
at androidx.appcompat.app.AlertController$2.onSuccess(SourceFile:34)
at androidx.work.Worker$2.run(SourceFile:131)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1004179, Dispatchers.IO]
Caused by: j$.time.format.DateTimeParseException: Text '2023-10-05T22:30:19-07:00' could not be parsed, unparsed text found at index 10
at j$.time.format.DateTimeFormatter.parseResolved0(Unknown Source:160)
at j$.time.format.DateTimeFormatter.parse(Unknown Source:11)
at j$.time.LocalDate.parse(Unknown Source:10)
at j$.time.LocalDate.parse(Unknown Source:2)
at kotlinx.datetime.LocalDate$Companion.parse(SourceFile:6)
... 15 more
LibreTube version
0.18.1 x86_64
Android version
Android 11
Other details
No response
Acknowledgements

 I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
 I have written a short but informative title.
 I will fill out all of the requested information in this form.

Closing comment (2023-10-06T07:45:21Z): Duplicate of #4884 , consider using the APK in #4899 as a workaround