Closed Ch1cC closed 2 years ago
https://github.com/muzuiget/niconvert/commit/94a4ccb0dd029c47e7cf59de996ef2167181fdff
把 undefined
映射为 0xffffff
白色值即可。
我在
def _color(self):
color =self.raw['color']
if(color!='undefined'):
return int(color)
return int(颜色)
进行了修改, props 中直接取用了原始值
也可以。
👍
niconvert-master\niconvert\libsite\bilibili.py", line 25, in _raw 'color': int(attrs[3]), ValueError: invalid literal for int() with base 10: 'undefined'
print(attrs)
['64.668', '1', '25', 'undefined', '1506859710', '1', '3ad3c7aa', '23835664667639810']