[MediaCCC] Return null instead of empty items collector

As per the documentation in the base getRelatedStreams()
This commit is contained in:
Stypox 2020-04-09 21:33:28 +02:00
parent 3b2a1829d4
commit 492db83ccf
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
2 changed files with 3 additions and 1 deletions

View File

@ -219,7 +219,7 @@ public class MediaCCCStreamExtractor extends StreamExtractor {
@Override
public StreamInfoItemsCollector getRelatedStreams() {
return new StreamInfoItemsCollector(getServiceId());
return null;
}
@Override

View File

@ -53,6 +53,7 @@ public class MediaCCCStreamExtractorTest {
@Nullable @Override public String expectedTextualUploadDate() { return "2018-05-11T02:00:00.000+02:00"; }
@Override public long expectedLikeCountAtLeast() { return -1; }
@Override public long expectedDislikeCountAtLeast() { return -1; }
@Override public boolean expectedHasRelatedStreams() { return false; }
@Override public boolean expectedHasSubtitles() { return false; }
@Override public boolean expectedHasFrames() { return false; }
@ -114,6 +115,7 @@ public class MediaCCCStreamExtractorTest {
@Nullable @Override public String expectedTextualUploadDate() { return "2020-01-11T01:00:00.000+01:00"; }
@Override public long expectedLikeCountAtLeast() { return -1; }
@Override public long expectedDislikeCountAtLeast() { return -1; }
@Override public boolean expectedHasRelatedStreams() { return false; }
@Override public boolean expectedHasSubtitles() { return false; }
@Override public boolean expectedHasFrames() { return false; }