mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-06 22:42:14 +08:00
chore: 优化代码
This commit is contained in:
@ -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('//', '/')
|
||||
|
Reference in New Issue
Block a user