From af9af6e7a21d774872f6127799f9ca52eeb7e92a Mon Sep 17 00:00:00 2001 From: LagradOst <11805592+LagradOst@users.noreply.github.com> Date: Sat, 7 May 2022 13:18:22 +0200 Subject: [PATCH] fixed nicehttp headers --- app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt index 71b614ce..c5fbf0bd 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt @@ -90,8 +90,9 @@ const val VLC_EXTRA_DURATION_OUT = "extra_duration" const val VLC_LAST_ID_KEY = "vlc_last_open_id" // Short name for requests client to make it nicer to use -var app = Requests() - +var app = Requests().apply { + defaultHeaders = mapOf("user-agent" to USER_AGENT) +} class MainActivity : AppCompatActivity(), ColorPickerDialogListener { companion object {