Merge pull request #13148 from dustdfg/extractor_enum_set

Accomodate extractor changes (EnumSet for service media capabilities)
This commit is contained in:
Tobi 2026-02-21 09:10:55 -08:00 committed by GitHub
commit 93aa8a1bb6
2 changed files with 3 additions and 5 deletions

View file

@ -343,8 +343,7 @@ public class RouterActivity extends AppCompatActivity {
return; return;
} }
final List<StreamingService.ServiceInfo.MediaCapability> capabilities = final var capabilities = currentService.getServiceInfo().getMediaCapabilities();
currentService.getServiceInfo().getMediaCapabilities();
// Check if the service supports the choice // Check if the service supports the choice
if ((isVideoPlayerSelected && capabilities.contains(VIDEO)) if ((isVideoPlayerSelected && capabilities.contains(VIDEO))
@ -528,8 +527,7 @@ public class RouterActivity extends AppCompatActivity {
final List<AdapterChoiceItem> returnedItems = new ArrayList<>(); final List<AdapterChoiceItem> returnedItems = new ArrayList<>();
returnedItems.add(showInfo); // Always present returnedItems.add(showInfo); // Always present
final List<StreamingService.ServiceInfo.MediaCapability> capabilities = final var capabilities = service.getServiceInfo().getMediaCapabilities();
service.getServiceInfo().getMediaCapabilities();
if (linkType == LinkType.STREAM || linkType == LinkType.PLAYLIST) { if (linkType == LinkType.STREAM || linkType == LinkType.PLAYLIST) {
if (capabilities.contains(VIDEO)) { if (capabilities.contains(VIDEO)) {

View file

@ -59,7 +59,7 @@ teamnewpipe-nanojson = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996"
# the corresponding commit hash, since JitPack sometimes deletes artifacts. # the corresponding commit hash, since JitPack sometimes deletes artifacts.
# If theres already a git hash, just add more of it to the end (or remove a letter) # If theres already a git hash, just add more of it to the end (or remove a letter)
# to cause jitpack to regenerate the artifact. # to cause jitpack to regenerate the artifact.
teamnewpipe-newpipe-extractor = "v0.25.2" teamnewpipe-newpipe-extractor = "824486dfdf4e9ba0fbe820bc2938f9101ae739a6"
viewpager2 = "1.1.0" viewpager2 = "1.1.0"
webkit = "1.14.0" # Newer versions require minSdk >= 23 webkit = "1.14.0" # Newer versions require minSdk >= 23
work = "2.10.5" # Newer versions require minSdk >= 23 work = "2.10.5" # Newer versions require minSdk >= 23