Update NewPipeExtractor. (#249)

This commit is contained in:
Kavin 2022-04-24 18:01:00 +01:00 committed by GitHub
parent bbd552fc71
commit 11b53e8c00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -1,7 +1,7 @@
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
id "java"
id "eclipse"
id "com.github.johnrengelman.shadow" version "7.1.2"
id "java"
id "eclipse"
}
repositories {
@ -16,7 +16,7 @@ dependencies {
implementation 'it.unimi.dsi:fastutil-core:8.5.8'
implementation 'commons-codec:commons-codec:1.15'
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:cc569414b43fd9c8c8e11673a4b20f6c6146016e'
implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:9fb93059b2f847beb893ed8768cee49a6fdcac2c'
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.2'
@ -48,11 +48,11 @@ shadowJar {
}
jar {
manifest {
attributes(
'Main-Class': 'me.kavin.piped.Main'
)
}
manifest {
attributes(
'Main-Class': 'me.kavin.piped.Main'
)
}
}
group = 'me.kavin.piped'

View file

@ -14,6 +14,7 @@ import org.hibernate.query.Query;
import org.schabi.newpipe.extractor.NewPipe;
import org.schabi.newpipe.extractor.localization.Localization;
import org.schabi.newpipe.extractor.services.youtube.YoutubeThrottlingDecrypter;
import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
@ -25,6 +26,7 @@ public class Main {
public static void main(String[] args) throws Exception {
NewPipe.init(new DownloaderImpl(), new Localization("en", "US"));
YoutubeStreamExtractor.forceFetchIosClient(true);
Injector.useSpecializer();