@@ -105,6 +105,7 @@ public void testAcceptYtUrl() throws ParsingException {
105105 @ Test
106106 public void testAcceptHookUrl () throws ParsingException {
107107 assertTrue (linkHandler .acceptUrl ("https://hooktube.com/watch?v=TglNG-yjabU" ));
108+ assertTrue (linkHandler .acceptUrl ("http://hooktube.com/watch?v=TglNG-yjabU" ));
108109 assertTrue (linkHandler .acceptUrl ("hooktube.com/watch?v=3msbfr6pBNE" ));
109110 assertTrue (linkHandler .acceptUrl ("https://hooktube.com/watch?v=ocH3oSnZG3c&list=PLS2VU1j4vzuZwooPjV26XM9UEBY2CPNn2" ));
110111 assertTrue (linkHandler .acceptUrl ("hooktube.com/watch/3msbfr6pBNE" ));
@@ -115,6 +116,7 @@ public void testAcceptHookUrl() throws ParsingException {
115116 @ Test
116117 public void testGetHookIdfromUrl () throws ParsingException {
117118 assertEquals ("TglNG-yjabU" , linkHandler .fromUrl ("https://hooktube.com/watch?v=TglNG-yjabU" ).getId ());
119+ assertEquals ("TglNG-yjabU" , linkHandler .fromUrl ("http://hooktube.com/watch?v=TglNG-yjabU" ).getId ());
118120 assertEquals ("3msbfr6pBNE" , linkHandler .fromUrl ("hooktube.com/watch?v=3msbfr6pBNE" ).getId ());
119121 assertEquals ("ocH3oSnZG3c" , linkHandler .fromUrl ("https://hooktube.com/watch?v=ocH3oSnZG3c&list=PLS2VU1j4vzuZwooPjV26XM9UEBY2CPNn2" ).getId ());
120122 assertEquals ("3msbfr6pBNE" , linkHandler .fromUrl ("hooktube.com/watch/3msbfr6pBNE" ).getId ());
@@ -125,6 +127,7 @@ public void testGetHookIdfromUrl() throws ParsingException {
125127 @ Test
126128 public void testAcceptInvidioUrl () throws ParsingException {
127129 assertTrue (linkHandler .acceptUrl ("https://invidio.us/watch?v=TglNG-yjabU" ));
130+ assertTrue (linkHandler .acceptUrl ("http://invidio.us/watch?v=TglNG-yjabU" ));
128131 assertTrue (linkHandler .acceptUrl ("invidio.us/watch?v=3msbfr6pBNE" ));
129132 assertTrue (linkHandler .acceptUrl ("https://invidio.us/watch?v=ocH3oSnZG3c&list=PLS2VU1j4vzuZwooPjV26XM9UEBY2CPNn2" ));
130133 assertTrue (linkHandler .acceptUrl ("invidio.us/embed/3msbfr6pBNE" ));
@@ -133,6 +136,7 @@ public void testAcceptInvidioUrl() throws ParsingException {
133136 @ Test
134137 public void testGetInvidioIdfromUrl () throws ParsingException {
135138 assertEquals ("TglNG-yjabU" , linkHandler .fromUrl ("https://invidio.us/watch?v=TglNG-yjabU" ).getId ());
139+ assertEquals ("TglNG-yjabU" , linkHandler .fromUrl ("http://invidio.us/watch?v=TglNG-yjabU" ).getId ());
136140 assertEquals ("3msbfr6pBNE" , linkHandler .fromUrl ("invidio.us/watch?v=3msbfr6pBNE" ).getId ());
137141 assertEquals ("ocH3oSnZG3c" , linkHandler .fromUrl ("https://invidio.us/watch?v=ocH3oSnZG3c&list=PLS2VU1j4vzuZwooPjV26XM9UEBY2CPNn2" ).getId ());
138142 assertEquals ("3msbfr6pBNE" , linkHandler .fromUrl ("invidio.us/embed/3msbfr6pBNE" ).getId ());
0 commit comments