2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-08-22 09:57:38 +00:00

[YT] Build correct handle

This commit is contained in:
litetex 2025-07-26 17:07:33 +02:00 committed by TobiGr
parent a5fcc7d7aa
commit 4701c56e86

View File

@ -209,8 +209,10 @@ public class YoutubeStreamInfoItemLockupExtractor implements StreamInfoItemExtra
throw new ParsingException("Could not get uploader url");
}
private String resolveUploaderUrlFromRelativeUrl(final String url) throws ParsingException {
return YoutubeChannelLinkHandlerFactory.getInstance().getUrl("c" + url);
private String resolveUploaderUrlFromRelativeUrl(final String relativeUrl)
throws ParsingException {
return YoutubeChannelLinkHandlerFactory.getInstance().getUrl(
relativeUrl.startsWith("/") ? relativeUrl.substring(1) : relativeUrl);
}
@Nonnull