not apply po tokens when cookies are off

This commit is contained in:
deniscerri 2025-10-04 15:56:15 +02:00
parent 10b17337b3
commit 0ac4ab20e3
No known key found for this signature in database
GPG key ID: 95C43D517D830350
2 changed files with 7 additions and 7 deletions

View file

@ -682,7 +682,7 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
extractorArgs.add("player_client=${playerClients.joinToString(",")}")
}
if (poTokens.isNotEmpty()) {
if (poTokens.isNotEmpty() && sharedPreferences.getBoolean("use_cookies", false)) {
extractorArgs.add("po_token=${poTokens.joinToString(",")}")
}

View file

@ -279,12 +279,12 @@
android:text="Use Visitor Data"
tools:ignore="HardcodedText" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:textStyle="bold"
android:text="@string/generate_potokens_warning"/>
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_margin="15dp"-->
<!-- android:textStyle="bold"-->
<!-- android:text="@string/generate_potokens_warning"/>-->
</LinearLayout>