mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-08-31 22:09:06 +00:00
1. add music parser
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package cn.qaiu.util;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class URLUtilTest {
|
||||
|
||||
@Test
|
||||
public void getParam() {
|
||||
|
||||
URLUtil util = URLUtil.from("https://i.y.qq.com/v8/playsong.html?ADTAG=cbshare&_wv=1&appshare=android_qq" +
|
||||
"&appsongtype=1&appversion=13100008&channelId=10036163&hosteuin=7iosow-s7enz&openinqqmusic=1&platform" +
|
||||
"=11&songmid=000XjcLg0fbRjv&type=0");
|
||||
Assert.assertEquals(util.getParam("songmid"), "000XjcLg0fbRjv");
|
||||
Assert.assertEquals(util.getParam("type"), "0");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user