kopia lustrzana https://github.com/TeamNewPipe/NewPipeExtractor
Change back to private
rodzic
e08747f339
commit
f15190f8f9
|
@ -210,7 +210,7 @@ public class YoutubeStreamInfoItemLockupExtractor implements StreamInfoItemExtra
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected long getViewCountFromViewCountText(@Nonnull final String viewCountText)
|
private long getViewCountFromViewCountText(@Nonnull final String viewCountText)
|
||||||
throws NumberFormatException, ParsingException {
|
throws NumberFormatException, ParsingException {
|
||||||
// These approaches are language dependent
|
// These approaches are language dependent
|
||||||
if (viewCountText.toLowerCase().contains(NO_VIEWS_LOWERCASE)) {
|
if (viewCountText.toLowerCase().contains(NO_VIEWS_LOWERCASE)) {
|
||||||
|
@ -230,17 +230,17 @@ public class YoutubeStreamInfoItemLockupExtractor implements StreamInfoItemExtra
|
||||||
"contentImage.thumbnailViewModel.image.sources"));
|
"contentImage.thumbnailViewModel.image.sources"));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isPremium() {
|
private boolean isPremium() {
|
||||||
// TODO Detect with samples
|
// TODO Detect with samples
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isPremiere() {
|
private boolean isPremiere() {
|
||||||
// TODO Detect with samples
|
// TODO Detect with samples
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Optional<JsonObject> metadataPart(final int rowIndex, final int partIndex)
|
private Optional<JsonObject> metadataPart(final int rowIndex, final int partIndex)
|
||||||
throws ParsingException {
|
throws ParsingException {
|
||||||
return JsonUtils.getArray(lockupViewModel,
|
return JsonUtils.getArray(lockupViewModel,
|
||||||
"metadata.lockupMetadataViewModel.metadata"
|
"metadata.lockupMetadataViewModel.metadata"
|
||||||
|
@ -255,7 +255,7 @@ public class YoutubeStreamInfoItemLockupExtractor implements StreamInfoItemExtra
|
||||||
.findFirst();
|
.findFirst();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getTextContentFromMetadataPart(final JsonObject metadataPart) {
|
private String getTextContentFromMetadataPart(final JsonObject metadataPart) {
|
||||||
return metadataPart.getObject("text").getString("content");
|
return metadataPart.getObject("text").getString("content");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue