Skip to content

Commit

Permalink
Fix an issue with the XvideosRipper found by URISyntaxException after…
Browse files Browse the repository at this point in the history
… refactor
  • Loading branch information
metaprime committed Jan 2, 2025
1 parent df97543 commit 29d4649
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public List<String> getURLsFromPage(Document doc) {
String[] lines = e.html().split("\n");
for (String line : lines) {
if (line.contains("html5player.setVideoUrlHigh")) {
String videoURL = line.replaceAll("\t", "").replaceAll("html5player.setVideoUrlHigh\\(", "").replaceAll("\'", "").replaceAll("\\);", "");
String videoURL = line.strip().replaceAll("\t", "").replaceAll("html5player.setVideoUrlHigh\\(", "").replaceAll("\'", "").replaceAll("\\);", "");
results.add(videoURL);
}
}
Expand Down

0 comments on commit 29d4649

Please sign in to comment.