mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-26 23:10:34 +05:30
fix channel links in description
This commit is contained in:
parent
119843bfac
commit
4469d11307
@ -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());
|
||||
|
@ -120,7 +120,7 @@ public class YoutubePlaylistExtractorTest {
|
||||
}
|
||||
}
|
||||
|
||||
public static class ImportantVideos implements BasePlaylistExtractorTest {
|
||||
public static class HugePlaylist implements BasePlaylistExtractorTest {
|
||||
private static YoutubePlaylistExtractor extractor;
|
||||
|
||||
@BeforeClass
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user