Naughty QQ Music API: Fix Unable to get the song list

Source: Internet
Author: User

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&notice=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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.