Giter Club home page Giter Club logo

Comments (12)

nondanee avatar nondanee commented on August 23, 2024

很抱歉这个无法实现,是网易云服务器不允许

{ msg: '下架歌曲无法收藏', code: 401 }

from unblockneteasemusic.

steven7851 avatar steven7851 commented on August 23, 2024

https://github.com/bin456789/Unblock163MusicClient-Xposed 可以实现,不知道怎么做到的,可能安卓api可以?

from unblockneteasemusic.

nondanee avatar nondanee commented on August 23, 2024

@steven7851
我试了weapi也会报401

{"trackIds":"[561307346]","code":401,"count":5,"cloudCount":0}

之前试的eapi也是401,安卓就是走eapi

@bin456789
xposed模块确实可以收藏下架的歌曲
不过我看xposed模块里这些操作都在后端实现
大佬能不能透露一下是怎么做到的🙏🙏🙏

from unblockneteasemusic.

JasonKhew96 avatar JasonKhew96 commented on August 23, 2024

自建服务器吧

from unblockneteasemusic.

nondanee avatar nondanee commented on August 23, 2024

@JasonKhew96
是啊,所以希望 @bin456789 大佬能透露一下后端实现嘛😂

from unblockneteasemusic.

bin456789 avatar bin456789 commented on August 23, 2024

收藏到歌单

url = "http://music.163.com/api/playlist/manipulate/tracks"
data = {
                'trackIds': '[%s,%s]' % (trackId, trackId),
                'pid': playlistId,
                'op': op
            }

post请求,cookie可能要添加{'os': 'pc'}

红心收藏
http://music.163.com/api/v1/user/info 得到uid
http://music.163.com/api/user/playlist?uid=%s&limit=1000&offset=0 得到"我喜欢的音乐"列表的playlistId
再次用上面的api就可以了

from unblockneteasemusic.

nondanee avatar nondanee commented on August 23, 2024

@bin456789
多谢指导,请问下是这样吗
image
cookie中含MUSIC_Uos=pc
这样还是401~

from unblockneteasemusic.

bin456789 avatar bin456789 commented on August 23, 2024

大概MUSIC_U和pid对不上,歌曲只能添加到自己创建的歌单

from unblockneteasemusic.

nondanee avatar nondanee commented on August 23, 2024

@bin456789 我傻了,pid和trackId填反了,多谢😂

from unblockneteasemusic.

nondanee avatar nondanee commented on August 23, 2024

@datou1996 已支持

from unblockneteasemusic.

nondanee avatar nondanee commented on August 23, 2024

@bin456789 感觉是网易云API的BUG,重复填两个trackId用weapi也可以成功添加到歌单😂

from unblockneteasemusic.

datou1996 avatar datou1996 commented on August 23, 2024

@nondanee 感谢

from unblockneteasemusic.

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.