接口
zbmate.search_music(name,callback)
Sample
正确的情况
zbmate.search_music("一人饮酒醉)
{
"errcode": 0,
"data": {
"name": "一人饮酒醉",
"id": 479403027,
"pst": 0,
"t": 0,
"ar": [
{
"id": 188681,
"name": "大鹏",
"tns": [],
"alias": []
},
{
"id": 1047007,
"name": "MC天佑",
"tns": [],
"alias": [
"天佑"
],
"alia": [
"天佑"
]
}
],
"alia": [
"电影《父子雄兵》宣传曲"
],
"pop": 100,
"st": 0,
"rt": null,
"fee": 0,
"v": 3,
"crbt": null,
"cf": "",
"al": {
"id": 35542024,
"name": "一人饮酒醉",
"picUrl": "http://p1.music.126.net/D6iOTgbMP5FcU5p4DuiNMQ==/18907201951374750.jpg",
"tns": [],
"pic_str": "18907201951374750",
"pic": 18907201951374750
},
"dt": 198397,
"h": {
"br": 320000,
"fid": 0,
"size": 7938133,
"vd": -1.02
},
"m": {
"br": 160000,
"fid": 0,
"size": 3969089,
"vd": -0.6
},
"l": {
"br": 96000,
"fid": 0,
"size": 2381471,
"vd": -0.67
},
"a": null,
"cd": "1",
"no": 0,
"rtUrl": null,
"ftype": 0,
"rtUrls": [],
"rtype": 0,
"rurl": null,
"mst": 9,
"cp": 488010,
"mv": 5531018,
"publishTime": 1495123200007,
"privilege": {
"id": 479403027,
"fee": 0,
"payed": 0,
"st": 0,
"pl": 320000,
"dl": 320000,
"sp": 7,
"cp": 1,
"subp": 1,
"cs": false,
"maxbr": 999000,
"fl": 320000,
"toast": false,
"flag": 0
},
"url": "http://m7.music.126.net/20171224200102/626765f71713013abe8bb15fee69036f/ymusic/8e48/a77d/e8cd/405a7b001eafe0eed19a63bf7c38eda1.mp3",
"size": 7938133,
"md5": "405a7b001eafe0eed19a63bf7c38eda1",
"type": "mp3",
"gain": -1.02,
"lyric": "[00:00.00] 作曲 : 刘潼/高迪\n[00:00.350] 作词 : 大鹏/高迪/刘潼\n[00:01.050]\n[00:01.810]音乐发行:奔跑怪物\n[00:03.280]\n[00:14.570]鹏:\n[00:14.860]我会想念\n[00:16.950]\n[00:18.220]曾经每一双\n[00:19.290]\n[00:20.270]无视的眼\n[00:21.280]\n[00:21.960]我会想起那\n[00:24.840]\n[00:25.460]曾经的壮志豪言\n[00:28.210]\n[00:29.590]佑:\n[00:29.870]一人我饮酒醉\n[00:31.430]醉把那佳人成双对\n[00:33.220]两眼是独相随\n[00:35.110]只求他日能双归\n[00:36.410]\n[00:36.960]娇女我轻扶琴\n[00:38.810]燕嬉我紫竹林\n[00:40.630]痴情红颜心甘情愿\n[00:42.480]千里把君寻\n[00:43.680]\n[00:44.220]说红颜我痴情笑\n[00:46.190]曲动我琴声妙\n[00:48.060]我轻狂那太高傲\n[00:49.650]我懵懂无知太年少\n[00:51.710]弃江山忘天下\n[00:53.490]斩断了情丝无牵挂\n[00:55.360]千古那留名传佳话\n[00:57.050]我两年征战已白发\n[00:58.630]\n[00:59.640]鹏:\n[00:59.940]拥挤的是房间\n[01:01.790]\n[01:02.370]并不是我心里\n[01:04.150]\n[01:04.660]蔚蓝的天\n[01:06.970]灰暗的是镜片\n[01:09.220]\n[01:09.790]长夜总会过去\n[01:11.430]\n[01:11.990]顺着时间\n[01:13.630]当少年不再少年\n[01:15.950]\n[01:17.120]当未来都变成从前\n[01:19.640]\n[01:20.800]还有多少初心不曾被改变\n[01:25.780]\n[01:28.200]我会想念\n[01:30.560]\n[01:31.890]曾经每一双\n[01:33.120]\n[01:34.010]无视的眼\n[01:35.650]我会想起那\n[01:38.680]\n[01:39.250]曾经的壮志豪言\n[01:41.900]\n[01:43.500]佑:\n[01:43.780]一生征战何人陪\n[01:45.270]谁是谁非谁相随\n[01:46.600]\n[01:47.110]戎马一生为了谁\n[01:48.560]我能爱几回恨几回\n[01:50.230]\n[01:50.810]败帝王斗苍天\n[01:52.630]夺得皇位已成仙\n[01:54.470]豪情万丈天地间\n[01:56.100]我续写另类帝王篇\n[01:57.640]\n[01:58.180]红尘事我已斩断\n[01:59.520]\n[02:00.030]久经战场人心乱\n[02:01.870]当年扬名又立万\n[02:03.410]我为这一战无遗憾\n[02:05.590]相思我愁断肠\n[02:07.430]眼中我泪两行\n[02:09.290]多年为君一统天下\n[02:11.080]为的是戎马把名扬\n[02:12.740]\n[02:14.330]鹏:\n[02:14.640]我会想念\n[02:16.680]\n[02:18.030]曾经每一双\n[02:19.280]\n[02:20.280]无视的眼\n[02:21.150]\n[02:21.840]我会想起那\n[02:24.940]\n[02:25.480]曾经每一个\n[02:26.710]\n[02:27.570]漫长的夜\n[02:28.580]\n[02:29.280]鹏:\n[02:29.560]我会想念\n[02:30.270]佑:\n[02:30.570]一人我饮酒醉\n[02:31.490]醉把那佳人成双对\n[02:32.800]鹏:\n[02:33.090]曾经每一双\n[02:33.770]佑:\n[02:34.050]两眼是独相随\n[02:34.840]鹏:\n[02:35.110]无视的眼\n[02:35.630]佑:\n[02:35.900]只求他日能双归\n[02:36.910]鹏:\n[02:37.210]我会想起那些\n[02:38.060]佑:\n[02:38.330]娇女我轻扶琴\n[02:39.190]燕嬉我紫竹林\n[02:40.040]鹏:\n[02:40.330]曾经的壮志豪言\n[02:41.390]佑:\n[02:41.690]痴情红颜心甘情愿\n[02:43.010]千里把君寻\n[02:44.240]说红颜我痴情笑\n[02:46.160]曲动我琴声妙\n[02:47.510]\n[02:48.050]轻狂高傲\n[02:48.930]懵懂无知只怪太年少\n[02:50.830]\n[02:51.660]弃江山忘天下\n[02:53.540]斩断情丝无牵挂\n[02:55.400]千古留名传佳话\n[02:56.970]我两年征战已白发\n"
}
}
错误的情况
zbmate.search_music('test")
{
"errcode": -1,
"info": "搜不到该歌曲歌词!"
}