Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 5ac71e0

Browse files
authored
Merge pull request TeamNewPipe#8547 from TeamNewPipe/release-0.23.1
Release v0.23.1 (987)
2 parents ecb8ef6 + d04ecbc commit 5ac71e0

File tree

255 files changed

+7020
-2581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+7020
-2581
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<p align="center"><a href="https://newpipe.net">Website</a> &bull; <a href="https://newpipe.net/blog/">Blog</a> &bull; <a href="https://newpipe.net/FAQ/">FAQ</a> &bull; <a href="https://newpipe.net/press/">Press</a></p>
1818
<hr>
1919

20-
*Read this in other languages: [English](README.md), [Español](doc/README.es.md), [한국어](doc/README.ko.md), [Soomaali](doc/README.so.md), [Português Brasil](doc/README.pt_BR.md), [Polski](doc/README.pl.md), [日本語](doc/README.ja.md), [Română](doc/README.ro.md), [Türkçe](doc/README.tr.md), [正體中文](doc/README.zh_TW.md).*
20+
*Read this in other languages: [English](README.md), [Español](doc/README.es.md), [हिन्दी](doc/README.hi.md), [한국어](doc/README.ko.md), [Soomaali](doc/README.so.md), [Português Brasil](doc/README.pt_BR.md), [Polski](doc/README.pl.md), [日本語](doc/README.ja.md), [Română](doc/README.ro.md), [Türkçe](doc/README.tr.md), [正體中文](doc/README.zh_TW.md).*
2121

2222
<b>WARNING: THIS IS A BETA VERSION, THEREFORE YOU MAY ENCOUNTER BUGS. IF YOU DO, OPEN AN ISSUE VIA OUR GITHUB REPOSITORY.</b>
2323

app/build.gradle

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ android {
1616
resValue "string", "app_name", "NewPipe"
1717
minSdk 19
1818
targetSdk 29
19-
versionCode 986
20-
versionName "0.23.0"
19+
versionCode 987
20+
versionName "0.23.1"
2121

2222
multiDexEnabled true
2323

@@ -107,7 +107,7 @@ ext {
107107
icepickVersion = '3.2.0'
108108
exoPlayerVersion = '2.17.1'
109109
googleAutoServiceVersion = '1.0.1'
110-
groupieVersion = '2.10.0'
110+
groupieVersion = '2.10.1'
111111
markwonVersion = '4.6.2'
112112

113113
leakCanaryVersion = '2.5'
@@ -190,7 +190,7 @@ dependencies {
190190
// name and the commit hash with the commit hash of the (pushed) commit you want to test
191191
// This works thanks to JitPack: https://jitpack.io/
192192
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
193-
implementation 'com.github.TeamNewPipe:NewPipeExtractor:ac1c22d81c65b7b0c5427f4e1989f5256d617f32'
193+
implementation 'com.github.TeamNewPipe:NewPipeExtractor:5219a705bab539cf8c6624d0cec216e76e85f0b1'
194194

195195
/** Checkstyle **/
196196
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
@@ -221,10 +221,9 @@ dependencies {
221221
// https://developer.android.com/jetpack/androidx/releases/viewpager2#1.1.0-alpha01
222222
implementation 'androidx.viewpager2:viewpager2:1.1.0-beta01'
223223
implementation 'androidx.webkit:webkit:1.4.0'
224-
implementation 'com.google.android.material:material:1.5.0'
225-
implementation "androidx.work:work-runtime:${androidxWorkVersion}"
226224
implementation "androidx.work:work-runtime-ktx:${androidxWorkVersion}"
227225
implementation "androidx.work:work-rxjava3:${androidxWorkVersion}"
226+
implementation 'com.google.android.material:material:1.5.0'
228227

229228
/** Third-party libraries **/
230229
// Instance state boilerplate elimination
@@ -262,7 +261,7 @@ dependencies {
262261
implementation "com.nononsenseapps:filepicker:4.2.1"
263262

264263
// Crash reporting
265-
implementation "ch.acra:acra-core:5.8.4"
264+
implementation "ch.acra:acra-core:5.9.3"
266265

267266
// Properly restarting
268267
implementation 'com.jakewharton:process-phoenix:2.1.2'

app/src/androidTest/java/org/schabi/newpipe/util/StreamItemAdapterTest.kt

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ class StreamItemAdapterTest {
9191
context,
9292
StreamItemAdapter.StreamSizeWrapper(
9393
(0 until 5).map {
94-
SubtitlesStream(MediaFormat.SRT, "pt-BR", "https://example.com", false)
94+
SubtitlesStream.Builder()
95+
.setContent("https://example.com", true)
96+
.setMediaFormat(MediaFormat.SRT)
97+
.setLanguageCode("pt-BR")
98+
.setAutoGenerated(false)
99+
.build()
95100
},
96101
context
97102
),
@@ -108,7 +113,14 @@ class StreamItemAdapterTest {
108113
val adapter = StreamItemAdapter<AudioStream, Stream>(
109114
context,
110115
StreamItemAdapter.StreamSizeWrapper(
111-
(0 until 5).map { AudioStream("https://example.com/$it", MediaFormat.OPUS, 192) },
116+
(0 until 5).map {
117+
AudioStream.Builder()
118+
.setId(Stream.ID_UNKNOWN)
119+
.setContent("https://example.com/$it", true)
120+
.setMediaFormat(MediaFormat.OPUS)
121+
.setAverageBitrate(192)
122+
.build()
123+
},
112124
context
113125
),
114126
null
@@ -126,7 +138,13 @@ class StreamItemAdapterTest {
126138
private fun getVideoStreams(vararg videoOnly: Boolean) =
127139
StreamItemAdapter.StreamSizeWrapper(
128140
videoOnly.map {
129-
VideoStream("https://example.com", MediaFormat.MPEG_4, "720p", it)
141+
VideoStream.Builder()
142+
.setId(Stream.ID_UNKNOWN)
143+
.setContent("https://example.com", true)
144+
.setMediaFormat(MediaFormat.MPEG_4)
145+
.setResolution("720p")
146+
.setIsVideoOnly(it)
147+
.build()
130148
},
131149
context
132150
)
@@ -138,8 +156,16 @@ class StreamItemAdapterTest {
138156
private fun getAudioStreams(vararg shouldBeValid: Boolean) =
139157
getSecondaryStreamsFromList(
140158
shouldBeValid.map {
141-
if (it) AudioStream("https://example.com", MediaFormat.OPUS, 192)
142-
else null
159+
if (it) {
160+
AudioStream.Builder()
161+
.setId(Stream.ID_UNKNOWN)
162+
.setContent("https://example.com", true)
163+
.setMediaFormat(MediaFormat.OPUS)
164+
.setAverageBitrate(192)
165+
.build()
166+
} else {
167+
null
168+
}
143169
}
144170
)
145171

app/src/main/java/org/schabi/newpipe/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ protected void initACRA() {
205205
return;
206206
}
207207

208-
final CoreConfigurationBuilder acraConfig = new CoreConfigurationBuilder(this)
208+
final CoreConfigurationBuilder acraConfig = new CoreConfigurationBuilder()
209209
.withBuildConfigClass(BuildConfig.class);
210210
ACRA.init(this, acraConfig);
211211
}

app/src/main/java/org/schabi/newpipe/DownloaderImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
public final class DownloaderImpl extends Downloader {
4545
public static final String USER_AGENT
46-
= "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0";
46+
= "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0";
4747
public static final String YOUTUBE_RESTRICTED_MODE_COOKIE_KEY
4848
= "youtube_restricted_mode_key";
4949
public static final String YOUTUBE_RESTRICTED_MODE_COOKIE = "PREF=f2=8000000";

0 commit comments

Comments
 (0)