chore: 优化代码

This commit is contained in:
helloplhm-qwq
2023-12-16 16:29:09 +08:00
parent 901d2ab838
commit 34eb8403b5
16 changed files with 22 additions and 25 deletions

View File

@ -6,14 +6,12 @@
# - license: MIT -
# ----------------------------------------
# This file is part of the "lx-music-api-server" project.
# Do not edit except you know what you are doing.
from . import utils
import ujson as json
import binascii
import re
# js: path = url.replace(/^https?:\/\/[\w.:]+\//, '/')
def checklxmheader(lxm, url):
try:
path = url.replace(re.findall(r'(?:https?:\/\/[\w.:]+\/)', url)[0], '/').replace('//', '/')