Skip to content

Commit 52a9b60

Browse files
authored
Merge pull request #13148 from dustdfg/extractor_enum_set
Accomodate extractor changes (EnumSet for service media capabilities)
2 parents 4bad882 + 63e1989 commit 52a9b60

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/RouterActivity.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ protected void onSuccess() {
343343
return;
344344
}
345345

346-
final List<StreamingService.ServiceInfo.MediaCapability> capabilities =
347-
currentService.getServiceInfo().getMediaCapabilities();
346+
final var capabilities = currentService.getServiceInfo().getMediaCapabilities();
348347

349348
// Check if the service supports the choice
350349
if ((isVideoPlayerSelected && capabilities.contains(VIDEO))
@@ -528,8 +527,7 @@ private List<AdapterChoiceItem> getChoicesForService(final StreamingService serv
528527
final List<AdapterChoiceItem> returnedItems = new ArrayList<>();
529528
returnedItems.add(showInfo); // Always present
530529

531-
final List<StreamingService.ServiceInfo.MediaCapability> capabilities =
532-
service.getServiceInfo().getMediaCapabilities();
530+
final var capabilities = service.getServiceInfo().getMediaCapabilities();
533531

534532
if (linkType == LinkType.STREAM || linkType == LinkType.PLAYLIST) {
535533
if (capabilities.contains(VIDEO)) {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ teamnewpipe-nanojson = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996"
5959
# the corresponding commit hash, since JitPack sometimes deletes artifacts.
6060
# If there’s already a git hash, just add more of it to the end (or remove a letter)
6161
# to cause jitpack to regenerate the artifact.
62-
teamnewpipe-newpipe-extractor = "v0.25.2"
62+
teamnewpipe-newpipe-extractor = "824486dfdf4e9ba0fbe820bc2938f9101ae739a6"
6363
viewpager2 = "1.1.0"
6464
webkit = "1.14.0" # Newer versions require minSdk >= 23
6565
work = "2.10.5" # Newer versions require minSdk >= 23

0 commit comments

Comments
 (0)