itKelis / MPV-Play-BiliBili-Comments

This is a mpv plugin for mpv to load bilibili comments automaticaly
GNU General Public License v3.0
154 stars 12 forks source link

使用lucky puppy 20231122版本mpv_lazy时,cid参数疑似被重写为时间戳 #40

Open itKelis opened 2 months ago

itKelis commented 2 months ago

油猴脚本:最新版 MPV版本: Luckypuppy514发布的20231122版本mpv_lazy 错误log:

[   0.841][e][bilibiliAssert] usage: Danmu2Ass.exe [-h] [-d] [-s WIDTHxHEIGHT] [-fn FONT] [-fs SIZE]
[   0.841][e][bilibiliAssert]                      [-a ALPHA] [-dm SECONDS] [-ds SECONDS] [-fl FILTER]
[   0.841][e][bilibiliAssert]                      [-flf FILTER_FILE] [-p HEIGHT] [-r]
[   0.841][e][bilibiliAssert]                      CID [CID ...]
[   0.841][e][bilibiliAssert] Danmu2Ass.exe: error: unrecognized arguments: 1644727178

mpv.log

MPV下载连接(解锁密码:7toz): https://wwcf.lanzout.com/b03kn9c6j

Momo-Tori commented 2 months ago

好像是源代码中多加了一个py_path导致Danmu2Ass.exepy_path接受为cid,导致后面添加的cid被认为是unrecognized arguments 可以注释掉exe部分的代码(main.lua中的139-150行),取消注释来使用python部分的代码(exe部分上面一段)