mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 06:10:33 +05:30
replace base url
This commit is contained in:
parent
203c884d51
commit
bc82a53f2c
@ -40,7 +40,7 @@ public class PeertubeTrendingLinkHandlerFactory extends ListLinkHandlerFactory {
|
|||||||
@Override
|
@Override
|
||||||
public String getId(String url) throws ParsingException {
|
public String getId(String url) throws ParsingException {
|
||||||
String baseUrl = ServiceList.PeerTube.getBaseUrl();
|
String baseUrl = ServiceList.PeerTube.getBaseUrl();
|
||||||
url = url.replace(baseUrl, "");
|
url = url.replace(baseUrl, "%s");
|
||||||
if (url.contains("/videos/trending")) {
|
if (url.contains("/videos/trending")) {
|
||||||
return KIOSK_TRENDING;
|
return KIOSK_TRENDING;
|
||||||
} else if (url.contains("/videos/recently-added")) {
|
} else if (url.contains("/videos/recently-added")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user