added comments to stream info

This commit is contained in:
Ritvik Saraf
2018-09-02 17:21:00 +05:30
parent 06898f47b2
commit f62f147ea0
5 changed files with 33 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -184,10 +185,7 @@ public class Downloader implements org.schabi.newpipe.extractor.Downloader {
@Override
public DownloadResponse get(String siteUrl) throws IOException, ReCaptchaException {
URL url = new URL(siteUrl);
HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
String responseBody = dl(con);
return new DownloadResponse(responseBody, con.getHeaderFields());
return get(siteUrl, Collections.emptyMap());
}
@Override

View File

@@ -23,7 +23,6 @@ public class YoutubeCommentsExtractorTest {
NewPipe.init(Downloader.getInstance());
extractor = (YoutubeCommentsExtractor) YouTube
.getCommentsExtractor("https://www.youtube.com/watch?v=rrgFN3AxGfs");
extractor.fetchPage();
}
@Test