From 3c1ccb5b8acd0b23254206af7862f59cbdec98f7 Mon Sep 17 00:00:00 2001 From: John Zhen M Date: Fri, 8 Sep 2017 07:03:37 -0700 Subject: [PATCH] Fix Playlist id extraction when length is less than 34 --- .../extractor/services/youtube/YoutubePlaylistUrlIdHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubePlaylistUrlIdHandler.java b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubePlaylistUrlIdHandler.java index 74bcc0863..5ebaa395e 100644 --- a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubePlaylistUrlIdHandler.java +++ b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubePlaylistUrlIdHandler.java @@ -8,7 +8,7 @@ import org.schabi.newpipe.extractor.utils.Parser; public class YoutubePlaylistUrlIdHandler implements UrlIdHandler { private static final YoutubePlaylistUrlIdHandler instance = new YoutubePlaylistUrlIdHandler(); - private static final String ID_PATTERN = "([\\-a-zA-Z0-9_]{34})"; + private static final String ID_PATTERN = "([\\-a-zA-Z0-9_]*)"; public static YoutubePlaylistUrlIdHandler getInstance() { return instance;