瀏覽代碼

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")


Loading…
取消
儲存