From bc82a53f2ca0b4ddf94d6b8810ef72c1e494bd0c Mon Sep 17 00:00:00 2001 From: Ritvik Saraf <13ritvik@gmail.com> Date: Wed, 26 Dec 2018 13:07:06 +0530 Subject: [PATCH] replace base url --- .../linkHandler/PeertubeTrendingLinkHandlerFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/linkHandler/PeertubeTrendingLinkHandlerFactory.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/linkHandler/PeertubeTrendingLinkHandlerFactory.java index f169086a..33f8a373 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/linkHandler/PeertubeTrendingLinkHandlerFactory.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/linkHandler/PeertubeTrendingLinkHandlerFactory.java @@ -40,7 +40,7 @@ public class PeertubeTrendingLinkHandlerFactory extends ListLinkHandlerFactory { @Override public String getId(String url) throws ParsingException { String baseUrl = ServiceList.PeerTube.getBaseUrl(); - url = url.replace(baseUrl, ""); + url = url.replace(baseUrl, "%s"); if (url.contains("/videos/trending")) { return KIOSK_TRENDING; } else if (url.contains("/videos/recently-added")) {