11package org .schabi .newpipe .extractor .services .youtube ;
22
3- import static org .junit .jupiter .api .Assertions .assertFalse ;
43import static org .junit .jupiter .api .Assertions .assertTrue ;
54import static org .schabi .newpipe .extractor .ServiceList .YouTube ;
65
@@ -38,7 +37,7 @@ static void setUp() throws IOException, ExtractionException {
3837
3938 @ Override public ChannelTabExtractor extractor () throws Exception { return extractor ; }
4039 @ Override public StreamingService expectedService () throws Exception { return YouTube ; }
41- @ Override public String expectedName () throws Exception { return ChannelTabs .VIDEOS ; }
40+ @ Override public String expectedName () throws Exception { return ChannelTabs .VIDEOS . getNameId (). name () ; }
4241 @ Override public String expectedId () throws Exception { return "UCTwECeGqMZee77BjdoYtI2Q" ; }
4342 @ Override public String expectedUrlContains () throws Exception { return "https://www.youtube.com/channel/UCTwECeGqMZee77BjdoYtI2Q/videos" ; }
4443 @ Override public String expectedOriginalUrlContains () throws Exception { return "https://www.youtube.com/user/creativecommons/videos" ; }
@@ -60,7 +59,7 @@ static void setUp() throws IOException, ExtractionException {
6059
6160 @ Override public ChannelTabExtractor extractor () throws Exception { return extractor ; }
6261 @ Override public StreamingService expectedService () throws Exception { return YouTube ; }
63- @ Override public String expectedName () throws Exception { return ChannelTabs .PLAYLISTS ; }
62+ @ Override public String expectedName () throws Exception { return ChannelTabs .PLAYLISTS . getNameId (). name () ; }
6463 @ Override public String expectedId () throws Exception { return "UC2DjFE7Xf11URZqWBigcVOQ" ; }
6564 @ Override public String expectedUrlContains () throws Exception { return "https://www.youtube.com/channel/UC2DjFE7Xf11URZqWBigcVOQ/playlists" ; }
6665 @ Override public String expectedOriginalUrlContains () throws Exception { return "https://www.youtube.com/@EEVblog/playlists" ; }
@@ -82,7 +81,7 @@ static void setUp() throws IOException, ExtractionException {
8281
8382 @ Override public ChannelTabExtractor extractor () throws Exception { return extractor ; }
8483 @ Override public StreamingService expectedService () throws Exception { return YouTube ; }
85- @ Override public String expectedName () throws Exception { return ChannelTabs .LIVESTREAMS ; }
84+ @ Override public String expectedName () throws Exception { return ChannelTabs .LIVESTREAMS . getNameId (). name () ; }
8685 @ Override public String expectedId () throws Exception { return "UCR-DXc1voovS8nhAvccRZhg" ; }
8786 @ Override public String expectedUrlContains () throws Exception { return "https://www.youtube.com/channel/UCR-DXc1voovS8nhAvccRZhg/streams" ; }
8887 @ Override public String expectedOriginalUrlContains () throws Exception { return "https://www.youtube.com/c/JeffGeerling/streams" ; }
@@ -104,7 +103,7 @@ static void setUp() throws IOException, ExtractionException {
104103
105104 @ Override public ChannelTabExtractor extractor () throws Exception { return extractor ; }
106105 @ Override public StreamingService expectedService () throws Exception { return YouTube ; }
107- @ Override public String expectedName () throws Exception { return ChannelTabs .SHORTS ; }
106+ @ Override public String expectedName () throws Exception { return ChannelTabs .SHORTS . getNameId (). name () ; }
108107 @ Override public String expectedId () throws Exception { return "UCh8gHdtzO2tXd593_bjErWg" ; }
109108 @ Override public String expectedUrlContains () throws Exception { return "https://www.youtube.com/channel/UCh8gHdtzO2tXd593_bjErWg/shorts" ; }
110109 @ Override public String expectedOriginalUrlContains () throws Exception { return "https://www.youtube.com/channel/UCh8gHdtzO2tXd593_bjErWg/shorts" ; }
@@ -138,7 +137,7 @@ static void setUp() throws IOException, ExtractionException {
138137
139138 @ Override public ChannelTabExtractor extractor () throws Exception { return extractor ; }
140139 @ Override public StreamingService expectedService () throws Exception { return YouTube ; }
141- @ Override public String expectedName () throws Exception { return ChannelTabs .VIDEOS ; }
140+ @ Override public String expectedName () throws Exception { return ChannelTabs .VIDEOS . getNameId (). name () ; }
142141 @ Override public String expectedId () throws Exception { return "UCbfnHqxXs_K3kvaH-WlNlig" ; }
143142 @ Override public String expectedUrlContains () throws Exception { return "https://www.youtube.com/channel/UCbfnHqxXs_K3kvaH-WlNlig/videos" ; }
144143 @ Override public String expectedOriginalUrlContains () throws Exception { return "https://www.youtube.com/channel/UCbfnHqxXs_K3kvaH-WlNlig/videos" ; }
@@ -164,7 +163,7 @@ static void setUp() throws IOException, ExtractionException {
164163
165164 @ Override public ChannelTabExtractor extractor () throws Exception { return extractor ; }
166165 @ Override public StreamingService expectedService () throws Exception { return YouTube ; }
167- @ Override public String expectedName () throws Exception { return ChannelTabs .SHORTS ; }
166+ @ Override public String expectedName () throws Exception { return ChannelTabs .SHORTS . getNameId (). name () ; }
168167 @ Override public String expectedId () throws Exception { return "UCbfnHqxXs_K3kvaH-WlNlig" ; }
169168 @ Override public String expectedUrlContains () throws Exception { return "https://www.youtube.com/channel/UCbfnHqxXs_K3kvaH-WlNlig/shorts" ; }
170169 @ Override public String expectedOriginalUrlContains () throws Exception { return "https://www.youtube.com/channel/UCbfnHqxXs_K3kvaH-WlNlig/shorts" ; }
0 commit comments