From 203c884d51a913105e51975db97ab517167a8dce Mon Sep 17 00:00:00 2001 From: Ritvik Saraf <13ritvik@gmail.com> Date: Wed, 26 Dec 2018 13:02:04 +0530 Subject: [PATCH] strip base url --- .../linkHandler/PeertubeTrendingLinkHandlerFactory.java | 3 ++- 1 file changed, 2 insertions(+), 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 bda842985..f169086ad 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 @@ -39,7 +39,8 @@ public class PeertubeTrendingLinkHandlerFactory extends ListLinkHandlerFactory { @Override public String getId(String url) throws ParsingException { - + String baseUrl = ServiceList.PeerTube.getBaseUrl(); + url = url.replace(baseUrl, ""); if (url.contains("/videos/trending")) { return KIOSK_TRENDING; } else if (url.contains("/videos/recently-added")) {