Skip to content

Commit

Permalink
Update YouTubeExtractor.java
Browse files Browse the repository at this point in the history
set use cache = true will fix this issue HaarigerHarald#225
  • Loading branch information
hijacker4163 committed Jul 27, 2022
1 parent c9044ef commit 9d0f28a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ private SparseArray<YtFile> getStreamUrls() throws IOException, InterruptedExcep
try {
urlConnection = (HttpURLConnection) getUrl.openConnection();
urlConnection.setRequestProperty("User-Agent", USER_AGENT);
urlConnection.setUseCaches(true);
reader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
StringBuilder sbPageHtml = new StringBuilder();
String line;
Expand Down

0 comments on commit 9d0f28a

Please sign in to comment.