Skip to content

Commit

Permalink
feat(provider/pyncmd): migrate to new API
Browse files Browse the repository at this point in the history
Ref: #1279
Closes: #1279

Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Oct 28, 2023
1 parent 2d0511c commit b93969a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/provider/pyncmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const { getManagedCacheStorage } = require('../cache');

const track = (info) => {
const url =
'https://pyncmd.apis.imouto.in/api/pyncm?module=track&method=GetTrackAudio&song_ids=' +
'https://csm.sayqz.com/api/?type=apiSongUrlV1&id=' +
info.id +
'&bitrate=' +
['999000', '320000'].slice(
'&level=' +
['hires', 'exhigh'].slice(
select.ENABLE_FLAC ? 0 : 1,
select.ENABLE_FLAC ? 1 : 2
);
Expand Down

1 comment on commit b93969a

@chris7395328
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该api可以最高获取到超清母带,[level]参数:standard=>标准, exhigh=>极高, lossless=>无损, hires=>Hi-Res, jyeffect=>高清环绕声, sky=>沉浸环绕声, jymaster=>超清母带
环绕声应该没啥必要,可以在hires前再添加一个jymaster为优先选择

Please sign in to comment.