strip base url

This commit is contained in:
Ritvik Saraf 2018-12-26 13:02:04 +05:30
parent 14cd1dbcbb
commit 203c884d51
1 changed files with 2 additions and 1 deletions

View File

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