调整好一点的画质
This commit is contained in:
@@ -380,7 +380,7 @@ class GuessSongPlugin(MessagePluginInterface):
|
||||
random_song = random.choice(songs)
|
||||
song_id = str(random_song.get("id", ""))
|
||||
base = self.music_api.split("?")[0].rstrip("/")
|
||||
detail_url = f"{base}/Song_V1?url={song_id}&level=standard&type=json"
|
||||
detail_url = f"{base}/Song_V1?url={song_id}&level=exhigh&type=json"
|
||||
detail_resp = requests.get(detail_url, timeout=15)
|
||||
if detail_resp.status_code != 200:
|
||||
self.LOG.error(f"详情请求失败,状态码: {detail_resp.status_code}")
|
||||
|
||||
@@ -164,7 +164,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
detail_url = self.song_api_url.format(url=song_id, level="standard", type="json")
|
||||
else:
|
||||
base = self.music_api_url.split("?")[0].rstrip("/")
|
||||
detail_url = f"{base}/Song_V1?url={song_id}&level=standard&type=json"
|
||||
detail_url = f"{base}/Song_V1?url={song_id}&level=exhigh&type=json"
|
||||
detail_resp = requests.get(detail_url, timeout=15)
|
||||
if detail_resp.status_code != 200:
|
||||
self.LOG.error(f"详情请求失败,状态码: {detail_resp.status_code}")
|
||||
|
||||
Reference in New Issue
Block a user