Previous full version: Http://www.cnblogs.com/TwilightLemon/p/7076938.html
QQ Music API is really naughty, get the API of the song list has been changed many times, Meow meow meow
Legacy API (Expired):
Https://y.qq.com/n/yqq/playlist/{0}.html#stat=y_new.profile.create_playlist.click&dirid=6
{0}: Song list ID
New API:
Https://c.y.qq.com/qzone/fcg-bin/fcg_ucc_getcdinfo_byids_cp.fcg?type=1&json=1&utf8=1&onlysong=0 &disstid={0}&format=json&g_tk=5381&loginuin=0&hostuin=0&format=jsonp&incharset= Utf8&outcharset=utf-8¬ice=0&platform=yqq&neednewcode=0
{0}: Song list ID
The returned data has also changed
The main song data is in ["Cdlist"][0] Place
Songlist: Song list content
UIn: Creator of the song List (Penguin)
Diss: Name of the song list
Logo: Picture of a single song
Desc: Introduction to the song list (probably not)
Nick (nickname): The creator name of the song list
Our main analysis is songlist:
["Cdlist"] [0] ["Songlist"] I ["Songname"]: Song name
["Cdlist"] [0] ["Songlist"] I ["Singer"] [0] ["Name"]: Singer (may have multiple)
["Cdlist"] [0] ["Songlist"] I ["Albumdesc"]: Album name (may not be)
["Cdlist"] [0] ["Songlist"] I ["SongID"]:(important) song ID used to get the song file
["Cdlist"] [0] ["Songlist"] I ["Sizeflac"]:sq file Size (possibly 0, some music has no sq quality, this parameter can be used to determine if SQ is supported)
["Cdlist"] [0] ["Songlist"] I ["size320"]:HQ file size, function ibid.
["Cdlist"] [0] ["Songlist"] I ["Albummid"]: Album Map ID
["Cdlist"] [0] ["Songlist"] I ["Vid"]:mvid
In fact, it can be found that songlist and the old version of the return is consistent, but in the previous changes
Full code check here: Https://github.com/TwilightLemon/Lemon-App/tree/master/Lemon%20App/Music
Lightweight code lookup here: Https://github.com/TwilightLemon/Music
This issue of the tutorial to the end of this, I hope you have a lot of attention to me Oh! N (* ≧▽≦ *) n
Naughty QQ Music API: Fix Unable to get the song list