2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-09-01 14:55:26 +00:00

replace base url

This commit is contained in:
Ritvik Saraf
2018-12-26 13:07:06 +05:30
parent 203c884d51
commit bc82a53f2c

View File

@@ -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")) {