chore: update NewPipeExtractor fork to latest version

This commit is contained in:
Bnyro
2025-05-07 17:34:20 +02:00
parent 738da2b251
commit 87cf026499
2 changed files with 4 additions and 3 deletions

View File

@ -21,6 +21,7 @@ import com.github.libretube.api.obj.StreamItem.Companion.TYPE_PLAYLIST
import com.github.libretube.api.obj.StreamItem.Companion.TYPE_STREAM
import com.github.libretube.api.obj.Streams
import com.github.libretube.api.obj.Subtitle
import com.github.libretube.api.poToken.PoTokenGenerator
import com.github.libretube.extensions.parallelMap
import com.github.libretube.extensions.sha256Sum
import com.github.libretube.extensions.toID
@ -47,6 +48,7 @@ import org.schabi.newpipe.extractor.localization.ContentCountry
import org.schabi.newpipe.extractor.playlist.PlaylistInfo
import org.schabi.newpipe.extractor.playlist.PlaylistInfoItem
import org.schabi.newpipe.extractor.search.SearchInfo
import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor
import org.schabi.newpipe.extractor.stream.AudioStream
import org.schabi.newpipe.extractor.stream.StreamInfo
import org.schabi.newpipe.extractor.stream.StreamInfoItem
@ -239,8 +241,7 @@ fun String.toListLinkHandler() = with(JsonHelper.json.decodeFromString<TabData>(
class NewPipeMediaServiceRepository : MediaServiceRepository {
init {
// TODO: implement SABR support and re-enable PoTokens afterwards
// YoutubeStreamExtractor.setPoTokenProvider(PoTokenGenerator());
YoutubeStreamExtractor.setPoTokenProvider(PoTokenGenerator());
}
override suspend fun getTrending(region: String): List<StreamItem> {

View File

@ -10,7 +10,7 @@ constraintlayout = "2.2.1"
loggingInterceptor = "4.12.0"
material = "1.12.0"
navigation = "2.8.9"
newpipeextractor = "bc9a5a220e"
newpipeextractor = "31d9725"
preference = "1.2.1"
extJunit = "1.2.1"
espresso = "3.6.1"