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
chubecode committed May 31, 2022
1 parent b89b599 commit 1ba132f
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 1ba132f

Please sign in to comment.