55 lines
1.2 KiB
Java
55 lines
1.2 KiB
Java
package org.schabi.newpipe.extractor.services.bandcamp.extractors.streaminfoitem;
|
|
|
|
import org.schabi.newpipe.extractor.localization.DateWrapper;
|
|
import org.schabi.newpipe.extractor.stream.StreamInfoItemExtractor;
|
|
import org.schabi.newpipe.extractor.stream.StreamType;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
/**
|
|
* Implements methods that return a constant value for better readability in
|
|
* subclasses.
|
|
*/
|
|
public abstract class BandcampStreamInfoItemExtractor implements StreamInfoItemExtractor {
|
|
private final String uploaderUrl;
|
|
|
|
public BandcampStreamInfoItemExtractor(String uploaderUrl) {
|
|
this.uploaderUrl = uploaderUrl;
|
|
}
|
|
|
|
@Override
|
|
public StreamType getStreamType() {
|
|
return StreamType.AUDIO_STREAM;
|
|
}
|
|
|
|
@Override
|
|
public long getViewCount() {
|
|
return -1;
|
|
}
|
|
|
|
@Override
|
|
public String getUploaderUrl() {
|
|
return uploaderUrl;
|
|
}
|
|
|
|
@Nullable
|
|
@Override
|
|
public String getTextualUploadDate() {
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
@Override
|
|
public DateWrapper getUploadDate() {
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* There are no ads just like that, duh
|
|
*/
|
|
@Override
|
|
public boolean isAd() {
|
|
return false;
|
|
}
|
|
}
|