mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Update NewPipeExtractor. (#249)
This commit is contained in:
parent
bbd552fc71
commit
11b53e8c00
2 changed files with 11 additions and 9 deletions
|
@ -16,7 +16,7 @@ dependencies {
|
||||||
implementation 'it.unimi.dsi:fastutil-core:8.5.8'
|
implementation 'it.unimi.dsi:fastutil-core:8.5.8'
|
||||||
implementation 'commons-codec:commons-codec:1.15'
|
implementation 'commons-codec:commons-codec:1.15'
|
||||||
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
|
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.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
|
||||||
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.2'
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.2'
|
||||||
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.2'
|
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.2'
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.hibernate.query.Query;
|
||||||
import org.schabi.newpipe.extractor.NewPipe;
|
import org.schabi.newpipe.extractor.NewPipe;
|
||||||
import org.schabi.newpipe.extractor.localization.Localization;
|
import org.schabi.newpipe.extractor.localization.Localization;
|
||||||
import org.schabi.newpipe.extractor.services.youtube.YoutubeThrottlingDecrypter;
|
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.CriteriaBuilder;
|
||||||
import javax.persistence.criteria.CriteriaQuery;
|
import javax.persistence.criteria.CriteriaQuery;
|
||||||
|
@ -25,6 +26,7 @@ public class Main {
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
|
||||||
NewPipe.init(new DownloaderImpl(), new Localization("en", "US"));
|
NewPipe.init(new DownloaderImpl(), new Localization("en", "US"));
|
||||||
|
YoutubeStreamExtractor.forceFetchIosClient(true);
|
||||||
|
|
||||||
Injector.useSpecializer();
|
Injector.useSpecializer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue