From 91751fd1fd9f9eb32386d872a69b7d7c3598b22a Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 24 Jul 2024 04:36:11 +0100 Subject: [PATCH] Update NewPipeExtractor. --- build.gradle | 2 +- src/main/java/me/kavin/piped/Main.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 78a6f3d8..6eb9af97 100644 --- a/build.gradle +++ b/build.gradle @@ -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:d486c3f4220c5b3fd045e614cd1662cdee437d13' + implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:ad90a5aa9c8daa323c02e6ffd800fc1f02dbe72e' 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' diff --git a/src/main/java/me/kavin/piped/Main.java b/src/main/java/me/kavin/piped/Main.java index 70317a8f..2d25a254 100644 --- a/src/main/java/me/kavin/piped/Main.java +++ b/src/main/java/me/kavin/piped/Main.java @@ -44,9 +44,7 @@ public static void main(String[] args) throws Exception { ReqwestUtils.init(REQWEST_PROXY, REQWEST_PROXY_USER, REQWEST_PROXY_PASS); - NewPipe.init(new DownloaderImpl(), new Localization("en", "US"), ContentCountry.DEFAULT, Multithreading.getCachedExecutor()); - YoutubeStreamExtractor.forceFetchAndroidClient(true); - YoutubeStreamExtractor.forceFetchIosClient(true); + NewPipe.init(new DownloaderImpl(), new Localization("en", "US"), ContentCountry.DEFAULT); YoutubeParsingHelper.setConsentAccepted(CONSENT_COOKIE); // Warm up the extractor