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

无法正确解析视频,报错如下 #126

Closed siinayuki2092 closed 1 month ago

siinayuki2092 commented 1 month ago
2024-09-28 11:18:18 V/Bot.~~~~~~~~~~: [渔乐社(国庆火车限定)(~~~~~~~~~~)] 小北酱(8:00-0:00开门提前半小时联系)(~~~~~~~~~~) -> [mirai:app:{"ver":"1.0.0.19","prompt":"[QQ小程序]我会永远监视你","config":{"type":"normal","width":0,"height":0,"forward":1,"autoSize":0,"ctime":1727493494,"token":"a14996962489a9850358fe560f6114d2"},"needShareCallBack":false,"app":"com.tencent.miniapp_01","view":"view_8C8E89B49BE609866298ADDFF2DBABA4","meta":{"detail_1":{"appid":"1109937557","appType":0,"title":"哔哩哔哩","desc":"我会永远监视你","icon":"https:\/\/open.gtimg.cn\/open\/app_icon\/00\/95\/17\/76\/100951776_100_m.png?t=1727422577","preview":"i0.hdslb.com\/bfs\/share_ttl\/9a2f5fce48847fb245942df1d6fb2ff3f0c09203.jpg","url":"m.q.qq.com\/a\/s\/080da3b3350109782918eb908190393b","scene":1036,"host":{"uin":2092199281,"nick":"SiinaYuki"},"shareTemplateId":"8C8E89B49BE609866298ADDFF2DBABA4","shareTemplateData":{},"qqdocurl":"https:\/\/b23.tv\/7mWfbaq?share_medium=android&share_source=qq&bbid=XUC7A6DC4D0428AAE792EFBA844A8115370D8&ts=1727493491066","showLittleTail":"","gamePoints":"","gamePointsUrl":""}}}]
2024-09-28 11:18:18 I/bilibili-helper: Member 小北酱(8:00-0:00开门提前半小时联系)~~~~~~~~~~) 匹配ShortLink(b23.tv\/7mWfbaq) 尝试跳转
2024-09-28 11:18:18 I/bilibili-helper: Member 小北酱(8:00-0:00开门提前半小时联系)(~~~~~~~~~~) 匹配Video(BV1PwtYefEFh)
2024-09-28 11:18:19 W/bilibili-helper: 构建Video(BV1PwtYefEFh)信息失败
kotlinx.serialization.json.internal.JsonDecodingException: Failed to parse 'int'
JSON input: .....om/bfs/storyff/n240917sar2afxmrsvdu32ktzlczsmqf_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$2$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-09-28 11:18:19 V/Bot.1590299490: Group(~~~~~~~~~~) <- Failed to parse 'int'
JSON input: .....om/bfs/storyff/n240917sar2afxmrsvdu32ktzlczsmqf_firsti.jpg"}
cssxsh commented 1 month ago

https://github.com/cssxsh/bilibili-helper/issues/124

cssxsh commented 1 month ago

https://github.com/cssxsh/bilibili-helper/releases/tag/v1.8.1