Skip to content

Commit

Permalink
Update pyncmd.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleRey authored Sep 9, 2023
1 parent 9230367 commit 78379b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/provider/pyncmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 78379b5

Please sign in to comment.