Create InfoItemExtractor

This commit is contained in:
Mauricio Colli
2017-08-11 15:21:49 -03:00
parent b719e59fae
commit 82824cdd72
28 changed files with 90 additions and 87 deletions

View File

@@ -2,6 +2,7 @@ package org.schabi.newpipe;
import org.schabi.newpipe.extractor.exceptions.ReCaptchaException;
import javax.net.ssl.HttpsURLConnection;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
@@ -11,8 +12,6 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.net.ssl.HttpsURLConnection;
/*
* Created by Christian Schabesberger on 28.01.16.
@@ -106,6 +105,7 @@ public class Downloader implements org.schabi.newpipe.extractor.Downloader {
BufferedReader in = null;
try {
con.setConnectTimeout(30 * 1000);// 30s
con.setReadTimeout(30 * 1000);// 30s
con.setRequestMethod("GET");
con.setRequestProperty("User-Agent", USER_AGENT);