From 29d46491f9dbda8e8d9cab03662b3a904627f5a1 Mon Sep 17 00:00:00 2001 From: MetaPrime Date: Thu, 2 Jan 2025 01:30:13 -0800 Subject: [PATCH] Fix an issue with the XvideosRipper found by URISyntaxException after refactor --- .../java/com/rarchives/ripme/ripper/rippers/XvideosRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/XvideosRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/XvideosRipper.java index ea19d484..6f591d18 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/XvideosRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/XvideosRipper.java @@ -82,7 +82,7 @@ public class XvideosRipper extends AbstractSingleFileRipper { 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); } }