Skip to content

Commit

Permalink
Merge branch 'TeamNewPipe:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhengyin authored Feb 1, 2022
2 parents 93f546e + a4399fd commit a3e26b8
Show file tree
Hide file tree
Showing 214 changed files with 6,433 additions and 6,817 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ NewPipe Extractor is available at JitPack's Maven repo.
If you're using Gradle, you could add NewPipe Extractor as a dependency with the following steps:

1. Add `maven { url 'https://jitpack.io' }` to the `repositories` in your `build.gradle`.
2. Add `implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.21.11'`the `dependencies` in your `build.gradle`. Replace `v0.21.11` with the latest release.
2. Add `implementation 'com.github.TeamNewPipe:NewPipeExtractor:INSERT_VERSION_HERE'` to the `dependencies` in your `build.gradle`. Replace `INSERT_VERSION_HERE` with the [latest release](https://github.com/TeamNewPipe/NewPipeExtractor/releases/latest).

**Note:** To use NewPipe Extractor in projects with a `minSdkVersion` below 26, [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) is required.

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ allprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8

version 'v0.21.11'
version 'v0.21.12'
group 'com.github.TeamNewPipe'

repositories {
Expand All @@ -28,8 +28,8 @@ allprojects {

ext {
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
spotbugsVersion = "4.5.0"
junitVersion = "4.13.2"
spotbugsVersion = "4.5.3"
junitVersion = "5.8.2"
}
}

Expand Down
7 changes: 6 additions & 1 deletion extractor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ test {
if (System.properties.containsKey('downloader')) {
systemProperty('downloader', System.getProperty('downloader'))
}
useJUnitPlatform()
}

dependencies {
Expand All @@ -14,7 +15,11 @@ dependencies {
implementation "com.github.spotbugs:spotbugs-annotations:$spotbugsVersion"
implementation 'org.nibor.autolink:autolink:0.10.0'

testImplementation "junit:junit:$junitVersion"
testImplementation platform("org.junit:junit-bom:$junitVersion")
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.junit.jupiter:junit-jupiter-params'

testImplementation "com.squareup.okhttp3:okhttp:3.12.13"
testImplementation 'com.google.code.gson:gson:2.8.9'
}
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();
}
}
Loading

0 comments on commit a3e26b8

Please sign in to comment.