public void TestExtractURL() { YT2013VideoInfoParser videoInfoParser = new YT2013VideoInfoParser(this.videoInfoURLTest); String url = videoInfoParser.extractURL(); Assert.AreEqual("http://r2---sn-8qu-t0al.c.youtube.com/videoplayback?id=b31c00b999fc6deb&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&key=yt1&itag=45&expire=1357374870&ratebypass=yes&newshard=yes&sver=3&ipbits=8&source=youtube&upn=bhi7IfOu-Qc&ip=24.201.54.186&cp=U0hUTFNSUl9MSkNONF9LTFZJOmxvTXU5ZlpHeGV5&ms=au&fexp=920704%2C912806%2C928001%2C922403%2C922405%2C929901%2C913605%2C929104%2C929110%2C913546%2C913556%2C908493%2C908496%2C920201%2C913302%2C919009%2C911116%2C926403%2C901451%2C902556&mt=1357352051&mv=m", url); }
public void TestExtractSig() { YT2013VideoInfoParser videoInfoParser = new YT2013VideoInfoParser(this.videoInfoURLTest); String sig = videoInfoParser.extractSig(); Assert.AreEqual("B2E24513AAF9EF951F4011F05DB7E26AA764D5D3.9E946F0870DFBD35654A046B0938CED9EF17A192", sig); }
public void TestExtractType() { YT2013VideoInfoParser videoInfoParser = new YT2013VideoInfoParser(this.videoInfoURLTest); String type = videoInfoParser.extractType(); Assert.AreEqual("video/webm", type); }
public void TestExtractQuality() { YT2013VideoInfoParser videoInfoParser = new YT2013VideoInfoParser(this.videoInfoURLTest); String quality = videoInfoParser.extractQuality(); Assert.AreEqual("hd720", quality); }