浏览代码

Just don't show duration if it's 0:00

main
fluffy 5 个月前
父节点
当前提交
f68f15f552
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. +0
    -2
      beatbot.py

+ 0
- 2
beatbot.py 查看文件

@@ -51,8 +51,6 @@ def format_details(yt_id, snippet):
duration = f' ({hours:d}:{minutes:02d}:{seconds:02d})'
elif minutes or seconds:
duration = f' ({minutes:d}:{seconds:02d})'
else:
duration = ' (LIVE)'
text += f' — {html.unescape(snippet["title"])}{duration}'
except RuntimeError:
LOGGER.exception("Unable to get video details")


正在加载...
取消
保存