Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Fix issue 225 #226

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,11 @@ private SparseArray<YtFile> getStreamUrls() throws IOException, InterruptedExcep

BufferedReader reader = null;
HttpURLConnection urlConnection = null;
URL getUrl = new URL("https://youtube.com/watch?v=" + videoID);
URL getUrl = new URL("https://www.youtube.com/watch?v=" + videoID);
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