fix channel links in description

This commit is contained in:
Christian Schabesberger 2018-09-07 21:40:36 +02:00
parent 119843bfac
commit 4469d11307
3 changed files with 4 additions and 3 deletions

View File

@ -178,7 +178,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
// They refer to the youtube search. We do not handle them.
a.text(link);
} else if(redirectLink.toString().contains("watch?v=")) {
} else if(redirectLink.toString().contains("watch?v=")
|| redirectLink.toString().contains("https://www.youtube.com/")) {
// Another posibility is that this link is pointing to another video
// we need to put the redirectLink in here explicitly in order to add the domain part to the link.
a.text(redirectLink.toString());

View File

@ -120,7 +120,7 @@ public class YoutubePlaylistExtractorTest {
}
}
public static class ImportantVideos implements BasePlaylistExtractorTest {
public static class HugePlaylist implements BasePlaylistExtractorTest {
private static YoutubePlaylistExtractor extractor;
@BeforeClass

View File

@ -35,7 +35,7 @@ import static org.schabi.newpipe.extractor.ServiceList.YouTube;
/**
* Test for {@link StreamExtractor}
*/
public class YoutubeStreamExtractorDASHText {
public class YoutubeStreamExtractorDASHTest {
private static StreamInfo info;
@BeforeClass