strip base url
This commit is contained in:
parent
14cd1dbcbb
commit
203c884d51
|
@ -39,7 +39,8 @@ 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();
|
||||||
|
url = url.replace(baseUrl, "");
|
||||||
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