Skip to content

Commit

Permalink
style: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo2011 committed Jul 13, 2022
1 parent fc3a972 commit 2b5324e
Show file tree
Hide file tree
Showing 11 changed files with 216 additions and 150 deletions.
4 changes: 2 additions & 2 deletions bilibili_api/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def parse(el: BeautifulSoup):
node.children = parse(e)
else:
if e.text != "":
#print(e.text.replace("\n", ""))
#print()
# print(e.text.replace("\n", ""))
# print()
node = TextNode(e.text)
# print("Add a text node: ", e.text)
node_list.append(node)
Expand Down
9 changes: 5 additions & 4 deletions bilibili_api/ass.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ async def make_ass_file_subtitle(bvid, out, name, credential=None):

async def make_ass_file_danmakus_protobuf(
bvid,
page: int=None,
page: int = None,
out=None,
cid: int=None,
cid: int = None,
credential=None,
date=None,
font_name="Simsun",
Expand Down Expand Up @@ -167,10 +167,11 @@ async def make_ass_file_danmakus_protobuf(
static_time,
)


async def make_ass_file_from_danmaku_xml(
bvid,
page: int=None,
cid: int=None,
page: int = None,
cid: int = None,
out=None,
credential=None,
font_name="Simsun",
Expand Down
2 changes: 1 addition & 1 deletion bilibili_api/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .utils.utils import get_api
from .utils.Credential import Credential
from .utils.network_httpx import request

API = get_api("audio")


Expand Down
4 changes: 3 additions & 1 deletion bilibili_api/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,9 @@ def __init__(
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter(
"[" + str(room_display_id) + "][%(asctime)s][%(levelname)s] %(message)s"
"["
+ str(room_display_id)
+ "][%(asctime)s][%(levelname)s] %(message)s"
)
)
self.logger.addHandler(handler)
Expand Down
Loading

0 comments on commit 2b5324e

Please sign in to comment.