Skip to content

Commit

Permalink
Resolving RipMeApp#1777. Xhamster now downloading all images in album.
Browse files Browse the repository at this point in the history
  • Loading branch information
mukulj77 committed Nov 8, 2020
1 parent 73c9feb commit 2cb978f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ private boolean isVideoUrl(URL url) {

@Override
public Document getNextPage(Document doc) throws IOException {
if (doc.select("a[data-page=next]").first() != null) {
String nextPageUrl = doc.select("a[data-page=next]").first().attr("href");
if (doc.select("a[rel=next]").first() != null) {
String nextPageUrl = doc.select("a[rel=next]").first().attr("href");
if (nextPageUrl.startsWith("http")) {
nextPageUrl = nextPageUrl.replaceAll("https?://\\w?\\w?\\.?xhamster\\.", "https://m.xhamster.");
nextPageUrl = nextPageUrl.replaceAll("https?://xhamster2\\.", "https://m.xhamster2.");
Expand Down

0 comments on commit 2cb978f

Please sign in to comment.