1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-09-29 23:40:49 +00:00

fixed another pattern problem

This commit is contained in:
Christian Schabesberger 2016-02-23 15:25:34 +01:00
parent 8126fdcd15
commit c7c77ab20c

View File

@ -49,7 +49,7 @@ public class YoutubeVideoUrlIdHandler implements VideoUrlIdHandler {
throw new ParsingException("Could not parse attribution_link", uee);
}
} else {
id = Parser.matchGroup1("youtube\\.com/watch\\?v=([\\-a-zA-Z0-9_]{11})", url);
id = Parser.matchGroup1("[?&]v=([\\-a-zA-Z0-9_]{11})", url);
}
}
else if(url.contains("youtu.be")) {