Skip to content

Index out of bounds when processing vote results in xml2ass #46

@Lintamazzz

Description

@Lintamazzz
➜  Downloads shiori download "https://live.nicovideo.jp/watch/lv349362109" --nico-danmaku-only
20:57:30.041  INFO Loading URL: https://live.nicovideo.jp/watch/lv349362109
20:57:32.160  WARN unhandled state: NicoliveState { statistics: Some(Statistics { viewers: Some(1099), comments: Some(6986), ad_points: Some(243600), gift_points: None }), enquete: None, move_order: None, marquee: None, comment_lock: None, comment_mode: None, trial_panel: None, program_status: None, moderation_announcement: None }    

thread 'main' (5679769) panicked at platforms/nicolive/src/xml2ass.rs:463:43:
index out of bounds: the len is 4 but the index is 4
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

前两场 timeshift 的弹幕都是可以正常下载的
就这一场出错(这场直播有很多4个选项的投票)

另外有一个小的建议
目前 --nico-danmaku-only 会同时输出 .json 和 .ass 的弹幕文件
能否支持单独输出?至少当 .ass 执行出错时,能继续生成 .json,而不是中断程序?

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions