修复QQ音乐的歌单翻页接口调用错误,导致翻页异常的问题 (#103)

* 修正网易歌单不能打开的问题

* 如果搜索框内没有关键词,切换Tab时候不调用搜索接口
以免网易接口字段缺失导致一直转圈和虾米出来的音乐都是*

* 修复QQ音乐的歌单翻页接口调用错误,导致翻页异常的问题
This commit is contained in:
Moobusy 2017-10-16 20:15:15 +08:00 committed by Listen 1
parent 3582594f1a
commit 7f513815af

View File

@ -7,15 +7,12 @@ var qq = (function() {
var qq_show_playlist = function(url, hm) {
var offset = getParameterByName("offset", url);
var page = offset/50 + 1;
var target_url = 'http://i.y.qq.com/s.plcloud/fcgi-bin/fcg_get_diss_by_tag' +
'.fcg?categoryId=10000000&sortId=' + page +
'&sin=0&ein=49&' +
'format=jsonp&g_tk=5381&loginUin=0&hostUin=0&' +
'format=jsonp&inCharset=GB2312&outCharset=utf-8' +
'&notice=0&platform=yqq&jsonpCallback=' +
'MusicJsonCallback&needNewCode=0';
var offset = Number(getParameterByName("offset", url)) || 0;
var target_url = 'https://c.y.qq.com/splcloud/fcgi-bin/fcg_get_diss_by_tag.fcg' +
'?rnd=0.4781484879517406&g_tk=732560869&jsonpCallback=MusicJsonCallback' +
'&loginUin=0&hostUin=0&format=jsonp&inCharset=utf8&outCharset=utf-8' +
'&notice=0&platform=yqq&needNewCode=0' +
'&categoryId=10000000&sortId=5&sin= ' + offset + '&ein=' + (49 + offset);
return {
success: function(fn) {