Skip to content

Commit

Permalink
chore: Merge pull request #641 from niu541412/main
Browse files Browse the repository at this point in the history
fix TypeError: 'NoneType' + 'int' in history danmuku
  • Loading branch information
Nemo2011 authored Jan 12, 2024
2 parents 11c33b1 + 3205e5f commit 13c8860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bilibili_api/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ async def get_danmakus(
api = API["danmaku"]["get_history_danmaku"]
params["date"] = date.strftime("%Y-%m-%d")
params["type"] = 1
from_seg = to_seg = 0
else:
api = API["danmaku"]["get_danmaku"]
if from_seg == None:
Expand Down

0 comments on commit 13c8860

Please sign in to comment.