Git Product home page Git Product logo

Comments (6)

UPman24 avatar UPman24 commented on May 18, 2024

找到 app => service => playUrl.ts 替换一下接口,就能同时下载免费和付费歌曲了

const BaseService = require('./BaseService')

export default class PlayUrl extends BaseService {
  async getPlayUrl (mid, br = '128kmp3') {
    return this.commonRequest(`http://www.kuwo.cn/api/v1/www/music/playUrl?mid=${mid}&type=convert_url3&br=${br}`)
  }
}

type为 convert_url3 时,免费/付费音乐都可以听
br为音质,可选 128kmp3、192kmp3 和 320kmp3
接口/kuwo/url?mid=162457325&br=128kmp3

npm run ci
npm run start
这样就可以了

from kuwomusicapi.

QiuYaohong avatar QiuYaohong commented on May 18, 2024

thanks, 根据你的提示已 fix

from kuwomusicapi.

QiuYaohong avatar QiuYaohong commented on May 18, 2024

thanks, 根据你的提示已 fix

from kuwomusicapi.

wifi-left avatar wifi-left commented on May 18, 2024

哦,还真是,感谢~
我一直以为web端api不能这么搞了,所以用了客户端的api(不过客户端的api倒一直都很稳定,接口都没换)

from kuwomusicapi.

wifi-left avatar wifi-left commented on May 18, 2024

更生草的是,客户端api获取到的永远是最高音质...

from kuwomusicapi.

QiuYaohong avatar QiuYaohong commented on May 18, 2024

from kuwomusicapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.