Change youtube channel url test

This commit is contained in:
Stypox 2019-08-12 13:13:41 +02:00
parent b8bc57c53f
commit 09c6822b1d
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -68,9 +68,8 @@ public class YoutubeSearchExtractorChannelOnlyTest extends YoutubeSearchExtracto
@Test
public void testChannelUrl() {
for(InfoItem item : itemsPage.getItems()) {
if (item.getName().contains("PewDiePie")) {
if (item.getName().equals("PewDiePie")) {
assertEquals("https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw", item.getUrl());
break;
} else {
assertThat(item.getUrl(), CoreMatchers.startsWith("https://www.youtube.com/channel/"));
}