Skip to content

Commit

Permalink
Simplify Vimeo HLS url resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
freyacodes committed Jan 2, 2024
1 parent 2c7df66 commit d911dcc
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,8 @@ private JsonBrowser loadTrackConfig(HttpInterface httpInterface, String trackAcc
}

protected String resolveRelativeUrl(String baseUrl, String url) {
int upTraversals = 0;
while (url.startsWith("../")) {
upTraversals++;
url = url.substring(3);
}

for (int i = 0; i < upTraversals; i++) {
baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/'));
}

Expand Down

0 comments on commit d911dcc

Please sign in to comment.