dragonflylee / switchfin

Third-party native Jellyfin client for Nintendo Switch
Apache License 2.0
292 stars 6 forks source link

解析弹幕 xml 时应通过整个标签名判断是不是弹幕 #66

Closed moetayuko closed 3 months ago

moetayuko commented 3 months ago

Describe the bug

目前仅通过 xml 标签的首字母判断是不是弹幕 https://github.com/dragonflylee/switchfin/blob/e5f519523e9362b42e5ef045cd5fd34d66c02a60/app/src/activity/player_view.cpp#L336

xml 弹幕里还有 datasize 项,会被误判断成弹幕,然后产生一条类似 [ERROR] DANMAKU: error decode: 484 的报错。应将判断改为整个字符串匹配

To reproduce

No response

Screenshots

No response

Operating system

No response

Jellyfin Server

No response

Additional context

No response

dragonflylee commented 3 months ago

最新编译的 nightly 已经修复该问题