Skip to content

Commit

Permalink
Merge pull request #755 from litetex/clean-up-yt-dis-likes
Browse files Browse the repository at this point in the history
Cleanup: Remove old ways of getting YT dis/likes
  • Loading branch information
litetex authored Dec 27, 2021
2 parents fe43242 + 148ba66 commit 10f6cc7
Show file tree
Hide file tree
Showing 89 changed files with 2,871 additions and 5,270 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,27 +149,24 @@ public List<StreamSegment> getStreamSegments() throws ParsingException {
@Nonnull
@Override
public String getLicence() {
// Contrary to other Bandcamp streams, radio streams don't have a license
return "";
}

@Nonnull
@Override
public String getCategory() {
// Contrary to other Bandcamp streams, radio streams don't have categories
return "";
}

@Nonnull
@Override
public List<String> getTags() {
// Contrary to other Bandcamp streams, radio streams don't have tags
return Collections.emptyList();
}

@Nonnull
@Override
public Privacy getPrivacy() {
return Privacy.PUBLIC;
}

@Override
public PlaylistInfoItemsCollector getRelatedItems() {
// Contrary to other Bandcamp streams, radio streams don't have related items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ public String getUploaderName() {
return albumJson.getString("artist");
}

@Override
public boolean isUploaderVerified() throws ParsingException {
return false;
}

@Nullable
@Override
public String getTextualUploadDate() {
Expand Down Expand Up @@ -132,24 +127,6 @@ public String getUploaderAvatarUrl() {
}
}

@Nonnull
@Override
public String getSubChannelUrl() {
return "";
}

@Nonnull
@Override
public String getSubChannelName() {
return "";
}

@Nonnull
@Override
public String getSubChannelAvatarUrl() {
return "";
}

@Nonnull
@Override
public Description getDescription() {
Expand All @@ -164,48 +141,6 @@ public Description getDescription() {
return new Description(s, Description.PLAIN_TEXT);
}

@Override
public int getAgeLimit() {
return NO_AGE_LIMIT;
}

@Override
public long getLength() {
return 0;
}

@Override
public long getTimeStamp() {
return 0;
}

@Override
public long getViewCount() {
return -1;
}

@Override
public long getLikeCount() {
return -1;
}

@Override
public long getDislikeCount() {
return -1;
}

@Nonnull
@Override
public String getDashMpdUrl() {
return "";
}

@Nonnull
@Override
public String getHlsUrl() {
return "";
}

@Override
public List<AudioStream> getAudioStreams() {
final List<AudioStream> audioStreams = new ArrayList<>();
Expand All @@ -228,18 +163,6 @@ public List<VideoStream> getVideoOnlyStreams() {
return Collections.emptyList();
}

@Nonnull
@Override
public List<SubtitlesStream> getSubtitlesDefault() {
return Collections.emptyList();
}

@Nonnull
@Override
public List<SubtitlesStream> getSubtitles(MediaFormat format) {
return Collections.emptyList();
}

@Override
public StreamType getStreamType() {
return StreamType.AUDIO_STREAM;
Expand All @@ -259,23 +182,6 @@ public PlaylistInfoItemsCollector getRelatedItems() {
return collector;
}

@Override
public String getErrorMessage() {
return null;
}

@Nonnull
@Override
public String getHost() {
return "";
}

@Nonnull
@Override
public Privacy getPrivacy() {
return Privacy.PUBLIC;
}

@Nonnull
@Override
public String getCategory() {
Expand Down Expand Up @@ -315,12 +221,6 @@ public String getLicence() {
}
}

@Nullable
@Override
public Locale getLanguageInfo() {
return null;
}

@Nonnull
@Override
public List<String> getTags() {
Expand All @@ -334,22 +234,4 @@ public List<String> getTags() {

return tags;
}

@Nonnull
@Override
public String getSupportInfo() {
return "";
}

@Nonnull
@Override
public List<StreamSegment> getStreamSegments() throws ParsingException {
return Collections.emptyList();
}

@Nonnull
@Override
public List<MetaInfo> getMetaInfo() throws ParsingException {
return Collections.emptyList();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,6 @@ public String getName() throws ParsingException {
return room.getString("display");
}

@Nullable
@Override
public String getTextualUploadDate() throws ParsingException {
return null;
}

@Nullable
@Override
public DateWrapper getUploadDate() throws ParsingException {
return null;
}

@Nonnull
@Override
public String getThumbnailUrl() throws ParsingException {
Expand All @@ -84,36 +72,11 @@ public Description getDescription() throws ParsingException {
return new Description(conference.getString("description") + " - " + group, Description.PLAIN_TEXT);
}

@Override
public int getAgeLimit() {
return 0;
}

@Override
public long getLength() {
return 0;
}

@Override
public long getTimeStamp() throws ParsingException {
return 0;
}

@Override
public long getViewCount() {
return -1;
}

@Override
public long getLikeCount() {
return -1;
}

@Override
public long getDislikeCount() {
return -1;
}

@Nonnull
@Override
public String getUploaderUrl() throws ParsingException {
Expand All @@ -126,41 +89,6 @@ public String getUploaderName() throws ParsingException {
return conference.getString("conference");
}

@Override
public boolean isUploaderVerified() throws ParsingException {
return false;
}

@Nonnull
@Override
public String getUploaderAvatarUrl() {
return "";
}

@Nonnull
@Override
public String getSubChannelUrl() {
return "";
}

@Nonnull
@Override
public String getSubChannelName() {
return "";
}

@Nonnull
@Override
public String getSubChannelAvatarUrl() {
return "";
}

@Nonnull
@Override
public String getDashMpdUrl() throws ParsingException {
return "";
}

@Nonnull
@Override
public String getHlsUrl() {
Expand Down Expand Up @@ -221,85 +149,14 @@ public List<VideoStream> getVideoOnlyStreams() {
return null;
}

@Nonnull
@Override
public List<SubtitlesStream> getSubtitlesDefault() {
return Collections.emptyList();
}

@Nonnull
@Override
public List<SubtitlesStream> getSubtitles(MediaFormat format) {
return Collections.emptyList();
}

@Override
public StreamType getStreamType() throws ParsingException {
return StreamType.LIVE_STREAM; // TODO: video and audio only streams are both available
}

@Nullable
@Override
public StreamInfoItemsCollector getRelatedItems() {
return null;
}

@Override
public String getErrorMessage() {
return null;
}

@Nonnull
@Override
public String getHost() {
return "";
}

@Nonnull
@Override
public Privacy getPrivacy() {
return Privacy.PUBLIC;
}

@Nonnull
@Override
public String getCategory() {
return group;
}

@Nonnull
@Override
public String getLicence() {
return "";
}

@Nullable
@Override
public Locale getLanguageInfo() {
return null;
}

@Nonnull
@Override
public List<String> getTags() {
return Collections.emptyList();
}

@Nonnull
@Override
public String getSupportInfo() {
return "";
}

@Nonnull
@Override
public List<StreamSegment> getStreamSegments() {
return Collections.emptyList();
}

@Nonnull
@Override
public List<MetaInfo> getMetaInfo() {
return Collections.emptyList();
}
}
Loading

0 comments on commit 10f6cc7

Please sign in to comment.