Skip to content

Commit

Permalink
Add default implementation for getShortDescription.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Oct 4, 2021
1 parent d1add05 commit 6231396
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ public DateWrapper getUploadDate() throws ParsingException {
return BandcampExtractorHelper.parseDate(getTextualUploadDate());
}

@Nullable
@Override
public String getShortDescription() {
return null;
}

@Override
public String getName() throws ParsingException {
return show.getString("subtitle");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ public String getUploaderAvatarUrl() {
return null;
}

@Nullable
@Override
public String getShortDescription() {
return null;
}

@Override
public String getName() {
return discograph.getString("title");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ public String getUploaderAvatarUrl() {
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ public String getUploaderAvatarUrl() {
return null;
}

@Nullable
@Override
public String getShortDescription() {
return null;
}

@Override
public String getName() throws ParsingException {
return resultInfo.getElementsByClass("heading").text();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,4 @@ public String getTextualUploadDate() throws ParsingException {
public DateWrapper getUploadDate() throws ParsingException {
return null;
}

@Nullable
@Override
public String getShortDescription() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,4 @@ public DateWrapper getUploadDate() throws ParsingException {
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSzzzz"));
return new DateWrapper(zonedDateTime.toOffsetDateTime(), false);
}

@Nullable
@Override
public String getShortDescription() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ public DateWrapper getUploadDate() throws ParsingException {
return new DateWrapper(MediaCCCParsingHelper.parseDateFrom(date));
}

@Nullable
@Override
public String getShortDescription() {
return null;
}

@Override
public String getName() throws ParsingException {
return event.getString("title");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ public DateWrapper getUploadDate() throws ParsingException {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ public DateWrapper getUploadDate() throws ParsingException {
return new DateWrapper(SoundcloudParsingHelper.parseDateFrom(getTextualUploadDate()));
}

@Nullable
@Override
public String getShortDescription() {
return null;
}

@Override
public long getViewCount() {
return itemObject.getLong("playback_count");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ public DateWrapper getUploadDate() throws ParsingException {
}
}

@Nullable
@Override
public String getShortDescription() {
return null;
}

@Override
public String getName() {
return entryElement.getElementsByTag("title").first().text();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

}

0 comments on commit 6231396

Please sign in to comment.