Skip to content
This repository was archived by the owner on Nov 26, 2023. It is now read-only.

Commit 78d2e30

Browse files
committed
Add another char
1 parent bc7e20a commit 78d2e30

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/com/dunctebot/sourcemanagers/clypit/ClypitAudioSourceManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ private JsonBrowser fetchJson(String itemId) throws IOException {
9393
throw new IOException("Unexpected status code for video page response: " + statusCode);
9494
}
9595

96-
9796
final String json = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);
9897

9998
return JsonBrowser.parse(json);

src/main/java/com/dunctebot/sourcemanagers/pornhub/PornHubAudioTrack.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void process(LocalAudioTrackExecutor executor) throws Exception {
6262
}
6363
}
6464

65-
/* package */ static String loadTrackUrl(AudioTrackInfo trackInfo, HttpInterface httpInterface) throws IOException {
65+
private static String loadTrackUrl(AudioTrackInfo trackInfo, HttpInterface httpInterface) throws IOException {
6666
final HttpGet httpGet = new HttpGet(trackInfo.identifier);
6767

6868
httpGet.setHeader("Cookie", "platform=tv");
@@ -89,7 +89,7 @@ private static String parseJsValueToUrl(String htmlPage, String js) {
8989

9090
for (final String i : items) {
9191
final String item = i.trim();
92-
final String regex = "var\\s+?" + item + "=\"([a-zA-Z0-9=?&_\\-\\.\\/\"\\+: ]+)\";";
92+
final String regex = "var\\s+?" + item + "=\"([a-zA-Z0-9=?&%_\\-\\.\\/\"\\+: ]+)\";";
9393
final Pattern pattern = Pattern.compile(regex);
9494
final Matcher matcher = pattern.matcher(htmlPage);
9595

0 commit comments

Comments
 (0)