Skip to content

Commit

Permalink
consistent naming (LivePath -> Live)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Dec 25, 2023
1 parent c919a07 commit 7e8c31e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class DefaultYoutubeLinkRouter implements YoutubeLinkRouter {
new Extractor(Pattern.compile("^" + PROTOCOL_REGEX + SHORT_DOMAIN_REGEX + "/.*"), this::routeFromShortDomain),
new Extractor(Pattern.compile("^" + PROTOCOL_REGEX + DOMAIN_REGEX + "/embed/.*"), this::routeFromEmbed),
new Extractor(Pattern.compile("^" + PROTOCOL_REGEX + DOMAIN_REGEX + "/shorts/.*"), this::routeFromShorts),
new Extractor(Pattern.compile("^" + PROTOCOL_REGEX + DOMAIN_REGEX + "/live/.*"), this::routeFromLivePath)
new Extractor(Pattern.compile("^" + PROTOCOL_REGEX + DOMAIN_REGEX + "/live/.*"), this::routeFromLive)
};

@Override
Expand Down Expand Up @@ -119,7 +119,7 @@ protected <T> T routeFromShorts(Routes<T> routes, String url) {
return routeFromUrlWithVideoId(routes, urlInfo.path.substring(8), urlInfo);
}

protected <T> T routeFromLivePath(Routes<T> routes, String url) {
protected <T> T routeFromLive(Routes<T> routes, String url) {
UrlInfo urlInfo = getUrlInfo(url, true);
return routeFromUrlWithVideoId(routes, urlInfo.path.substring(6), urlInfo);
}
Expand Down

0 comments on commit 7e8c31e

Please sign in to comment.