Add default implementation for getShortDescription.

This commit is contained in:
FireMaskterK 2021-10-04 01:42:29 +01:00
parent d1add05bc1
commit 62313962a0
11 changed files with 1 additions and 61 deletions

View File

@ -43,12 +43,6 @@ public class BandcampRadioInfoItemExtractor implements StreamInfoItemExtractor {
return BandcampExtractorHelper.parseDate(getTextualUploadDate());
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
@Override
public String getName() throws ParsingException {
return show.getString("subtitle");

View File

@ -26,12 +26,6 @@ public class BandcampDiscographStreamInfoItemExtractor extends BandcampStreamInf
return null;
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
@Override
public String getName() {
return discograph.getString("title");

View File

@ -60,12 +60,6 @@ public class BandcampPlaylistStreamInfoItemExtractor extends BandcampStreamInfoI
return null;
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
/**
* Each track can have its own cover art. Therefore, unless a substitute is provided,
* the thumbnail is extracted using a stream extractor.

View File

@ -32,12 +32,6 @@ public class BandcampSearchStreamInfoItemExtractor extends BandcampStreamInfoIte
return null;
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
@Override
public String getName() throws ParsingException {
return resultInfo.getElementsByClass("heading").text();

View File

@ -95,10 +95,4 @@ public class MediaCCCLiveStreamKioskExtractor implements StreamInfoItemExtractor
public DateWrapper getUploadDate() throws ParsingException {
return null;
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
}

View File

@ -92,10 +92,4 @@ public class MediaCCCRecentKioskExtractor implements StreamInfoItemExtractor {
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSzzzz"));
return new DateWrapper(zonedDateTime.toOffsetDateTime(), false);
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
}

View File

@ -73,12 +73,6 @@ public class MediaCCCStreamInfoItemExtractor implements StreamInfoItemExtractor
return new DateWrapper(MediaCCCParsingHelper.parseDateFrom(date));
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
@Override
public String getName() throws ParsingException {
return event.getString("title");

View File

@ -92,12 +92,6 @@ public class PeertubeStreamInfoItemExtractor implements StreamInfoItemExtractor
return new DateWrapper(PeertubeParsingHelper.parseDateFrom(textualUploadDate));
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
@Override
public StreamType getStreamType() {
return item.getBoolean("isLive") ? StreamType.LIVE_STREAM : StreamType.VIDEO_STREAM;

View File

@ -66,12 +66,6 @@ public class SoundcloudStreamInfoItemExtractor implements StreamInfoItemExtracto
return new DateWrapper(SoundcloudParsingHelper.parseDateFrom(getTextualUploadDate()));
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
@Override
public long getViewCount() {
return itemObject.getLong("playback_count");

View File

@ -77,12 +77,6 @@ public class YoutubeFeedInfoItemExtractor implements StreamInfoItemExtractor {
}
}
@Nullable
@Override
public String getShortDescription() {
return null;
}
@Override
public String getName() {
return entryElement.getElementsByTag("title").first().text();

View File

@ -124,6 +124,6 @@ public interface StreamInfoItemExtractor extends InfoItemExtractor {
* @throws ParsingException if there is an error in the extraction
*/
@Nullable
String getShortDescription() throws ParsingException;
default String getShortDescription() throws ParsingException { return null; }
}