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:
parent
a5fcc7d7aa
commit
4701c56e86
@ -209,8 +209,10 @@ public class YoutubeStreamInfoItemLockupExtractor implements StreamInfoItemExtra
|
|||||||
throw new ParsingException("Could not get uploader url");
|
throw new ParsingException("Could not get uploader url");
|
||||||
}
|
}
|
||||||
|
|
||||||
private String resolveUploaderUrlFromRelativeUrl(final String url) throws ParsingException {
|
private String resolveUploaderUrlFromRelativeUrl(final String relativeUrl)
|
||||||
return YoutubeChannelLinkHandlerFactory.getInstance().getUrl("c" + url);
|
throws ParsingException {
|
||||||
|
return YoutubeChannelLinkHandlerFactory.getInstance().getUrl(
|
||||||
|
relativeUrl.startsWith("/") ? relativeUrl.substring(1) : relativeUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
|
Loading…
x
Reference in New Issue
Block a user