This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| Author:Geekwolf | |
| #获取频道列表url | |
| getlisturl='http://fm.baidu.com/dev/api/?tn=playlist&format=json&id=' | |
| #获取歌曲地址url | |
| getmusicrealurl='http://music.baidu.com/data/music/fmlink?type=mp3&rate=320&songIds=' | |
| channel_id=`curl -s http://fm.baidu.com/|grep rawChannelList|awk -F "=" '{print $2}'|jq .|grep channel_id|awk -F '"' '{print $4}'` |