mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
Merge pull request #839 from TeamNewPipe/bandcamp/extract-length
Bandcamp: extract stream length
This commit is contained in:
commit
598ebb92ea
@ -161,6 +161,12 @@ public class BandcampStreamExtractor extends StreamExtractor {
|
||||
return audioStreams;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getLength() throws ParsingException {
|
||||
return (long) albumJson.getArray("trackinfo").getObject(0)
|
||||
.getDouble("duration");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<VideoStream> getVideoStreams() {
|
||||
return Collections.emptyList();
|
||||
|
@ -91,7 +91,7 @@ public class BandcampStreamExtractorTest extends DefaultStreamExtractorTest {
|
||||
|
||||
@Override
|
||||
public long expectedLength() {
|
||||
return 0;
|
||||
return 124;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user