Skip to content

Commit 164c8e3

Browse files
committed
[YouTube] Workaround again 403 HTTP issues on the Android client by using new player parameters
These parameters are the only ones currently known to bypass 403 HTTP issues related to failure of passing Android client integrity checks, as the ones of stories (and the base of the shorts ones) do not work anymore, which may be related to end of this format on the service.
1 parent 986a3f7 commit 164c8e3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -981,11 +981,9 @@ private void fetchAndroidMobileJsonPlayer(@Nonnull final ContentCountry contentC
981981
.value(CPN, androidCpn)
982982
.value(CONTENT_CHECK_OK, true)
983983
.value(RACY_CHECK_OK, true)
984-
// Workaround getting streaming URLs which can return 403 HTTP response
985-
// codes by using stories parameter for Android client requests
986-
// This behavior only happen in certain countries such as UK as of
987-
// 10.29.2022
988-
.value("params", "8AEB")
984+
// Workaround getting streaming URLs which return 403 HTTP response code by
985+
// using some parameters for Android client requests
986+
.value("params", "CgIQBg")
989987
.done())
990988
.getBytes(StandardCharsets.UTF_8);
991989

0 commit comments

Comments
 (0)