not apply po tokens when cookies are off
This commit is contained in:
parent
10b17337b3
commit
0ac4ab20e3
2 changed files with 7 additions and 7 deletions
|
|
@ -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(",")}")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue