Skip to content

Commit 4701c56

Browse files
litetexTobiGr
authored andcommitted
[YT] Build correct handle
1 parent a5fcc7d commit 4701c56

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamInfoItemLockupExtractor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,10 @@ public String getUploaderUrl() throws ParsingException {
209209
throw new ParsingException("Could not get uploader url");
210210
}
211211

212-
private String resolveUploaderUrlFromRelativeUrl(final String url) throws ParsingException {
213-
return YoutubeChannelLinkHandlerFactory.getInstance().getUrl("c" + url);
212+
private String resolveUploaderUrlFromRelativeUrl(final String relativeUrl)
213+
throws ParsingException {
214+
return YoutubeChannelLinkHandlerFactory.getInstance().getUrl(
215+
relativeUrl.startsWith("/") ? relativeUrl.substring(1) : relativeUrl);
214216
}
215217

216218
@Nonnull

0 commit comments

Comments
 (0)