mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-05-20 11:15:46 +08:00
style: 清理无效代码
This commit is contained in:
@@ -2,7 +2,6 @@ import asyncio
|
|||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import secrets
|
import secrets
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
@@ -689,9 +688,6 @@ def access_key_verification(file_path, key, code):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
range_pattern = re.compile(r"bytes=(\d+)-(\d*)")
|
|
||||||
|
|
||||||
|
|
||||||
def safe_redirect(url):
|
def safe_redirect(url):
|
||||||
url = try_add_access_control_param(config, url)
|
url = try_add_access_control_param(config, url)
|
||||||
url = url.replace("\\", "")
|
url = url.replace("\\", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user