Skip to content

Commit 4469d11

Browse files
committed
fix channel links in description
1 parent 119843b commit 4469d11

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ private String parseHtmlAndGetFullLinks(String descriptionHtml)
178178
// They refer to the youtube search. We do not handle them.
179179
a.text(link);
180180

181-
} else if(redirectLink.toString().contains("watch?v=")) {
181+
} else if(redirectLink.toString().contains("watch?v=")
182+
|| redirectLink.toString().contains("https://www.youtube.com/")) {
182183
// Another posibility is that this link is pointing to another video
183184
// we need to put the redirectLink in here explicitly in order to add the domain part to the link.
184185
a.text(redirectLink.toString());

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubePlaylistExtractorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void testStreamCount() throws Exception {
120120
}
121121
}
122122

123-
public static class ImportantVideos implements BasePlaylistExtractorTest {
123+
public static class HugePlaylist implements BasePlaylistExtractorTest {
124124
private static YoutubePlaylistExtractor extractor;
125125

126126
@BeforeClass

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractorDASHText.java renamed to extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractorDASHTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/**
3636
* Test for {@link StreamExtractor}
3737
*/
38-
public class YoutubeStreamExtractorDASHText {
38+
public class YoutubeStreamExtractorDASHTest {
3939
private static StreamInfo info;
4040

4141
@BeforeClass

0 commit comments

Comments
 (0)