mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 14:20:33 +05:30
Change youtube channel url test
This commit is contained in:
parent
b8bc57c53f
commit
09c6822b1d
@ -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/"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user