cssxsh / bilibili-helper

Mirai Console 插件开发计划
https://github.com/users/cssxsh/projects/4
GNU Affero General Public License v3.0
144 stars 18 forks source link

无法获取部分视频信息 #124

Closed XunchuFRD closed 4 months ago

XunchuFRD commented 4 months ago

疑似新av号较长

日志如下

2024-07-16 13:32:15 V/Bot.*: [某群聊] 某用户-> https://www.bilibili.com/video/av112783358234595?p=1

2024-07-16 13:32:16 I/bilibili-helper: Member 某用户 匹配Video(av112783358234595)
2024-07-16 13:32:16 W/bilibili-helper: 构建Video(av112783358234595)信息失败
kotlinx.serialization.json.internal.JsonDecodingException: Failed to parse 'int'
JSON input: .....om/bfs/storyff/n240714sa13rmkrapqivs23hnzgkmf2m_firsti.jpg"}
        at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
        at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
        at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.unparsedPrimitive(TreeJsonDecoder.kt:146)
        at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedInt(TreeJsonDecoder.kt:380)
        at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedInt(TreeJsonDecoder.kt:36)
        at kotlinx.serialization.internal.TaggedDecoder.decodeIntElement(Tagged.kt:252)
        at bilibili-helper-1.8.0.mirai2.jar//xyz.cssxsh.bilibili.data.VideoPage$$serializer.deserialize(Video.kt:290)
        at bilibili-helper-1.8.0.mirai2.jar//xyz.cssxsh.bilibili.data.VideoPage$$serializer.deserialize(Video.kt:290)
        at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:61)
        at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:52)
        at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:207)
        at kotlinx.serialization.internal.TaggedDecoder$decodeSerializableElement$1.invoke(Tagged.kt:280)
        at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:297)
        at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableElement(Tagged.kt:280)
        at kotlinx.serialization.encoding.CompositeDecoder$DefaultImpls.decodeSerializableElement$default(Decoding.kt:533)
        at kotlinx.serialization.internal.CollectionLikeSerializer.readElement(CollectionSerializers.kt:80)
        at kotlinx.serialization.internal.AbstractCollectionSerializer.readElement$default(CollectionSerializers.kt:51)
        at kotlinx.serialization.internal.AbstractCollectionSerializer.merge(CollectionSerializers.kt:36)
        at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(CollectionSerializers.kt:43)
        at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:61)
        at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:52)
        at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:207)
        at kotlinx.serialization.internal.TaggedDecoder$decodeSerializableElement$1.invoke(Tagged.kt:280)
        at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:297)
        at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableElement(Tagged.kt:280)
        at bilibili-helper-1.8.0.mirai2.jar//xyz.cssxsh.bilibili.data.BiliVideoInfo$$serializer.deserialize(Video.kt:30)
        at bilibili-helper-1.8.0.mirai2.jar//xyz.cssxsh.bilibili.data.BiliVideoInfo$$serializer.deserialize(Video.kt:30)
        at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:61)
        at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:52)
        at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
        at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:117)
        at bilibili-helper-1.8.0.mirai2.jar//xyz.cssxsh.bilibili.api.VideoKt$getVideoInfo$$inlined$json$1$1.invokeSuspend(Api.kt:141)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

2024-07-16 13:32:17 V/Bot.*: Group(*) <- Failed to parse 'int'
JSON input: .....om/bfs/storyff/n240714sa13rmkrapqivs23hnzgkmf2m_firsti.jpg"}
502milk commented 4 months ago

看得出来,转成av号之后超出int上限了XD