Skip to content

Commit dfe8716

Browse files
committed
Merge branch 'dev'
2 parents ebc129c + d07e16a commit dfe8716

File tree

200 files changed

+6060
-6500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+6060
-6500
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ allprojects {
88
sourceCompatibility = 1.8
99
targetCompatibility = 1.8
1010

11-
version 'v0.21.13'
11+
version 'v0.21.14'
1212
group 'com.github.TeamNewPipe'
1313

1414
repositories {
@@ -28,8 +28,8 @@ allprojects {
2828

2929
ext {
3030
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
31-
spotbugsVersion = "4.5.0"
32-
junitVersion = "4.13.2"
31+
spotbugsVersion = "4.5.3"
32+
junitVersion = "5.8.2"
3333
}
3434
}
3535

extractor/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ test {
33
if (System.properties.containsKey('downloader')) {
44
systemProperty('downloader', System.getProperty('downloader'))
55
}
6+
useJUnitPlatform()
67
}
78

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

17-
testImplementation "junit:junit:$junitVersion"
18+
testImplementation platform("org.junit:junit-bom:$junitVersion")
19+
testImplementation 'org.junit.jupiter:junit-jupiter-api'
20+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
21+
testImplementation 'org.junit.jupiter:junit-jupiter-params'
22+
1823
testImplementation "com.squareup.okhttp3:okhttp:3.12.13"
1924
testImplementation 'com.google.code.gson:gson:2.8.9'
2025
}

extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampRadioStreamExtractor.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,27 +149,24 @@ public List<StreamSegment> getStreamSegments() throws ParsingException {
149149
@Nonnull
150150
@Override
151151
public String getLicence() {
152+
// Contrary to other Bandcamp streams, radio streams don't have a license
152153
return "";
153154
}
154155

155156
@Nonnull
156157
@Override
157158
public String getCategory() {
159+
// Contrary to other Bandcamp streams, radio streams don't have categories
158160
return "";
159161
}
160162

161163
@Nonnull
162164
@Override
163165
public List<String> getTags() {
166+
// Contrary to other Bandcamp streams, radio streams don't have tags
164167
return Collections.emptyList();
165168
}
166169

167-
@Nonnull
168-
@Override
169-
public Privacy getPrivacy() {
170-
return Privacy.PUBLIC;
171-
}
172-
173170
@Override
174171
public PlaylistInfoItemsCollector getRelatedItems() {
175172
// Contrary to other Bandcamp streams, radio streams don't have related items

extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampStreamExtractor.java

Lines changed: 0 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ public String getUploaderName() {
9898
return albumJson.getString("artist");
9999
}
100100

101-
@Override
102-
public boolean isUploaderVerified() throws ParsingException {
103-
return false;
104-
}
105-
106101
@Nullable
107102
@Override
108103
public String getTextualUploadDate() {
@@ -132,24 +127,6 @@ public String getUploaderAvatarUrl() {
132127
}
133128
}
134129

135-
@Nonnull
136-
@Override
137-
public String getSubChannelUrl() {
138-
return "";
139-
}
140-
141-
@Nonnull
142-
@Override
143-
public String getSubChannelName() {
144-
return "";
145-
}
146-
147-
@Nonnull
148-
@Override
149-
public String getSubChannelAvatarUrl() {
150-
return "";
151-
}
152-
153130
@Nonnull
154131
@Override
155132
public Description getDescription() {
@@ -164,48 +141,6 @@ public Description getDescription() {
164141
return new Description(s, Description.PLAIN_TEXT);
165142
}
166143

167-
@Override
168-
public int getAgeLimit() {
169-
return NO_AGE_LIMIT;
170-
}
171-
172-
@Override
173-
public long getLength() {
174-
return 0;
175-
}
176-
177-
@Override
178-
public long getTimeStamp() {
179-
return 0;
180-
}
181-
182-
@Override
183-
public long getViewCount() {
184-
return -1;
185-
}
186-
187-
@Override
188-
public long getLikeCount() {
189-
return -1;
190-
}
191-
192-
@Override
193-
public long getDislikeCount() {
194-
return -1;
195-
}
196-
197-
@Nonnull
198-
@Override
199-
public String getDashMpdUrl() {
200-
return "";
201-
}
202-
203-
@Nonnull
204-
@Override
205-
public String getHlsUrl() {
206-
return "";
207-
}
208-
209144
@Override
210145
public List<AudioStream> getAudioStreams() {
211146
final List<AudioStream> audioStreams = new ArrayList<>();
@@ -228,18 +163,6 @@ public List<VideoStream> getVideoOnlyStreams() {
228163
return Collections.emptyList();
229164
}
230165

231-
@Nonnull
232-
@Override
233-
public List<SubtitlesStream> getSubtitlesDefault() {
234-
return Collections.emptyList();
235-
}
236-
237-
@Nonnull
238-
@Override
239-
public List<SubtitlesStream> getSubtitles(MediaFormat format) {
240-
return Collections.emptyList();
241-
}
242-
243166
@Override
244167
public StreamType getStreamType() {
245168
return StreamType.AUDIO_STREAM;
@@ -259,23 +182,6 @@ public PlaylistInfoItemsCollector getRelatedItems() {
259182
return collector;
260183
}
261184

262-
@Override
263-
public String getErrorMessage() {
264-
return null;
265-
}
266-
267-
@Nonnull
268-
@Override
269-
public String getHost() {
270-
return "";
271-
}
272-
273-
@Nonnull
274-
@Override
275-
public Privacy getPrivacy() {
276-
return Privacy.PUBLIC;
277-
}
278-
279185
@Nonnull
280186
@Override
281187
public String getCategory() {
@@ -315,12 +221,6 @@ public String getLicence() {
315221
}
316222
}
317223

318-
@Nullable
319-
@Override
320-
public Locale getLanguageInfo() {
321-
return null;
322-
}
323-
324224
@Nonnull
325225
@Override
326226
public List<String> getTags() {
@@ -334,22 +234,4 @@ public List<String> getTags() {
334234

335235
return tags;
336236
}
337-
338-
@Nonnull
339-
@Override
340-
public String getSupportInfo() {
341-
return "";
342-
}
343-
344-
@Nonnull
345-
@Override
346-
public List<StreamSegment> getStreamSegments() throws ParsingException {
347-
return Collections.emptyList();
348-
}
349-
350-
@Nonnull
351-
@Override
352-
public List<MetaInfo> getMetaInfo() throws ParsingException {
353-
return Collections.emptyList();
354-
}
355237
}

0 commit comments

Comments
 (0)