Skip to content

Commit

Permalink
fix: use latest NewPipe extractor version
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Feb 27, 2025
1 parent cd76980 commit acd2d35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
implementation 'it.unimi.dsi:fastutil-core:8.5.13'
implementation 'commons-codec:commons-codec:1.17.0'
implementation 'org.bouncycastle:bcprov-jdk18on:1.78.1'
implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:5325dc927b6861cd02c68dcd8e9cddbc4cf753ef'
implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:aa40823e8b2f87c32ed244889c7a5542b9d820ec'
implementation 'com.github.FireMasterK:nanojson:9f4af3b739cc13f3d0d9d4b758bbe2b2ae7119d7'
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
Expand Down
17 changes: 13 additions & 4 deletions src/main/java/me/kavin/piped/utils/BgPoTokenProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ private PoTokenResult createWebClientPoToken() throws Exception {
}).join();

if (poToken != null) {
return new PoTokenResult(visitorDate, poToken);
return new PoTokenResult(visitorDate, poToken, null);
}

return null;
}

@Override
public @Nullable PoTokenResult getWebClientPoToken() {
public @Nullable PoTokenResult getWebClientPoToken(String videoId) {
try {
return getPoTokenPooled();
} catch (Exception e) {
Expand All @@ -86,8 +86,17 @@ private PoTokenResult createWebClientPoToken() throws Exception {
}

@Override
public @Nullable PoTokenResult getAndroidClientPoToken() {
// TODO: allow setting from config maybe?
public @Nullable PoTokenResult getWebEmbedClientPoToken(String videoId) {
return null;
}

@Override
public @Nullable PoTokenResult getAndroidClientPoToken(String videoId) {
return null;
}

@Override
public @Nullable PoTokenResult getIosClientPoToken(String videoId) {
return null;
}
}

0 comments on commit acd2d35

Please sign in to comment.