zonyitoo / doubanfm-qt

A DoubanFM client
Other
511 stars 99 forks source link

"客户端已经停止使用,请前往 douban.fm 收听,感谢理解。" #41

Open coiby opened 8 years ago

coiby commented 8 years ago

这两天出现的,可能是API变了。

zonyitoo commented 8 years ago

这…………说关就关啊

1dot75cm commented 8 years ago

客户端居然关了

zhangsr commented 8 years ago

豆瓣原来的url参数已经失效

将 "radio_desktop_win" 替换成 "radio_android" 就可以了

coiby commented 8 years ago

@zhangsr 漂亮!

qichunren commented 7 years ago

API又改了吗?提示: API已升级, 请下载豆瓣FM App继续收听。感谢理解。

zonyitoo commented 7 years ago

Help wanted

chengxianghe commented 7 years ago

运行之前的demo一看 "API已升级, 请下载豆瓣FM App继续收听。感谢理解。" 豆瓣这是要哪样?

zonyitoo commented 7 years ago

豆瓣客户端更新了整套客户端,使用了新接口。

chengxianghe commented 7 years ago

我抓包看了一下 这个是豆瓣精选的 豆瓣精选 https://api.douban.com/v2/fm/playlist?alt=json&apikey=02646d3fb69a52ff072d47bf23cef8fd&app_name=radio_iphone&channel=-10&client=s%3Amobile%7Cy%3AiOS%2010.2%7Cf%3A115%7Cd%3Ab88146214e19b8a8244c9bc0e2789da68955234d%7Ce%3AiPhone7%2C1%7Cm%3Aappstore&douban_udid=b635779c65b816b13b330b68921c0f8edc049590&formats=aac&kbps=128&pt=0.0&type=n&udid=b88146214e19b8a8244c9bc0e2789da68955234d&version=115

chengxianghe commented 7 years ago

我试着去除一些无用的 https://api.douban.com/v2/fm/playlist?apikey=02646d3fb69a52ff072d47bf23cef8fd&app_name=radio_iphone&channel=0&formats=aac&kbps=128&pt=0.0&type=n&udid=b88146214e19b8a8244c9bc0e2789da68955234d&version=115

其中apikey这里也可以不加上, 可能跟登录有关

chengxianghe commented 7 years ago

这个是歌词的 https://api.douban.com/v2/fm/lyric?sid=2197343&ssid=5b5b

chengxianghe commented 7 years ago

登录: https://www.douban.com/service/auth2/token 格式:POST 参数"?_v=58705&alt=json&apikey=02646d3fb69a52ff072d47bf23cef8fd&client_id=02646d3fb69a52ff072d47bf23cef8fd&client_secret=cde5d61429abcd7c&device_id=b88146214e19b8a8244c9bc0e2789da68955234d&douban_udid=b635779c65b816b13b330b68921c0f8edc049590&grant_type=password&password=&redirect_uri=http%3A//www.douban.com/mobile/fm&udid=b88146214e19b8a8244c9bc0e2789da68955234d&username=" 密码和用户名已用"****"代替

chengxianghe commented 7 years ago

算了 这样粘贴好慢, 我整理一下再发吧 @zonyitoo 你看一下应该是可以用的

chengxianghe commented 7 years ago

我整理好了 @zonyitoo https://github.com/chengxianghe/DouBanFMApi/wiki

zonyitoo commented 7 years ago

谢谢!不过apiKey这个参数可能是跟应用有关的,直接写死可能会有问题……

zonyitoo commented 7 years ago

粗略看了一下跟旧的API区别巨大,近期我暂时没有时间改动,是否可以提个PR

chengxianghe commented 7 years ago

好的, 抽空我提个PR, 这里面的apikey 倒是不用担心,我发现不传也是可以访问的。

chengxianghe commented 7 years ago

@zonyitoo @qichunren 刚刚上来发现这个issue还没关,我在5月份的时候已经提交更新wiki了哦。现在的wiki上应该都是可以访问的接口了。

zonyitoo commented 7 years ago

@chengxianghe 可以提个PR么?

zonyitoo commented 7 years ago

@chengxianghe

chengxianghe commented 7 years ago

@zonyitoo wiki里面好像就是直接就改了,不用提的……

另外 “https://api.douban.com/v2/fm/app_channels 这个是404” 我这边访问是正常的哦,你可以换个网络环境试一下。

https://api.douban.com/v2/fm/playlist 这个502” 这个这样写是缺少参数的;

zonyitoo commented 7 years ago

我的意思是把修改改到代码里。 我正在改了。第一个404的问题,偶现。他们的API有问题。 感觉可能FM要被关了。

chengxianghe commented 7 years ago

@zonyitoo 额,提交代码这个就抱歉了... 目前我不会c++啊,虽然可能看得懂一小部分,但是还是不敢乱改的,我现在做的是iOS开发。