Add support for y2u.be links

This commit is contained in:
mhmdanas
2021-10-22 22:48:18 +03:00
parent b425394e7a
commit 3e8e2a1532
3 changed files with 12 additions and 1 deletions

View File

@@ -61,4 +61,10 @@ public class YoutubeCommentsLinkHandlerFactoryTest {
assertEquals("VM_6n762j6M", linkHandler.fromUrl("https://invidio.us/VM_6n762j6M&t=20").getId());
}
@Test
public void getIdFromY2ube() throws ParsingException {
assertEquals("VM_6n762j6M", linkHandler.fromUrl("https://y2u.be/VM_6n762j6M").getId());
assertEquals("VM_6n762j6M", linkHandler.fromUrl("https://Y2U.Be/VM_6n762j6M").getId());
}
}