Fix Playlist id extraction when length is less than 34

This commit is contained in:
John Zhen M 2017-09-08 07:03:37 -07:00
parent 13fab09810
commit 3c1ccb5b8a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import org.schabi.newpipe.extractor.utils.Parser;
public class YoutubePlaylistUrlIdHandler implements UrlIdHandler { public class YoutubePlaylistUrlIdHandler implements UrlIdHandler {
private static final YoutubePlaylistUrlIdHandler instance = new YoutubePlaylistUrlIdHandler(); 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() { public static YoutubePlaylistUrlIdHandler getInstance() {
return instance; return instance;