未验证 提交 b0f636be 编写于 作者: P pukkandan

[Sponsorblock] Don't crash when duration is unknown

CLoses #3529
上级 d14b920c
......@@ -38,7 +38,7 @@ def run(self, info):
return [], info
self.to_screen('Fetching SponsorBlock segments')
info['sponsorblock_chapters'] = self._get_sponsor_chapters(info, info['duration'])
info['sponsorblock_chapters'] = self._get_sponsor_chapters(info, info.get('duration'))
return [], info
def _get_sponsor_chapters(self, info, duration):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册