Skip to content

Commit 41f689b

Browse files
B0polStypox
andcommitted
Update extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeStreamLinkHandlerFactory.java
Co-authored-by: Stypox <stypox@pm.me>
1 parent ee2012c commit 41f689b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeStreamLinkHandlerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
4040

4141
private static final Pattern YOUTUBE_VIDEO_ID_REGEX_PATTERN = Pattern.compile("^([a-zA-Z0-9_-]{11})");
4242
private static final YoutubeStreamLinkHandlerFactory instance = new YoutubeStreamLinkHandlerFactory();
43-
private static final List<String> subpaths = Arrays.asList("embed/", "shorts/", "watch/", "v/", "w/");
43+
private static final List<String> SUBPATHS = Arrays.asList("embed/", "shorts/", "watch/", "v/", "w/");
4444

4545
private YoutubeStreamLinkHandlerFactory() {
4646
}
@@ -223,7 +223,7 @@ public boolean onAcceptUrl(final String url) throws FoundAdException {
223223
}
224224

225225
private String getIdFromSubpathsInPath(String path) throws ParsingException {
226-
for (final String subpath : subpaths) {
226+
for (final String subpath : SUBPATHS) {
227227
if (path.startsWith(subpath)) {
228228
String id = path.substring(subpath.length());
229229
return assertIsId(id);

0 commit comments

Comments
 (0)