From 78379b514d81de7e15d2bf184954356933684110 Mon Sep 17 00:00:00 2001 From: LittleRey <34397448+LittleRey@users.noreply.github.com> Date: Sat, 9 Sep 2023 18:53:09 +0800 Subject: [PATCH] Update pyncmd.js --- src/provider/pyncmd.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/provider/pyncmd.js b/src/provider/pyncmd.js index 587ded3786..41b6c25ac6 100644 --- a/src/provider/pyncmd.js +++ b/src/provider/pyncmd.js @@ -4,14 +4,17 @@ const { getManagedCacheStorage } = require('../cache'); const track = (info) => { const url = - 'https://pyncmd.vercel.app/api/pyncm?module=track&method=GetTrackAudio&song_ids=' + + 'http://pyncmd.vercel.app/api/pyncm?module=track&method=GetTrackAudio&song_ids=' + info.id + '&bitrate=' + ['999000', '320000'].slice( select.ENABLE_FLAC ? 0 : 1, select.ENABLE_FLAC ? 1 : 2 ); - return request('GET', url) + const headers = { + Host: 'pyncmd.vercel.app', + }; + return request('GET', url, headers) .then((response) => response.json()) .then((jsonBody) => { if (