File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ $Defaults = @{
7272 autoAudio = @ (" https://music.youtube.com/watch?v=" )
7373 browserCookies = " firefox"
7474 DownloadFolderName = " yt-dlp"
75- myCookies = " "
7675 SelectDownloadedFile = $true
7776 templateNameChannel = " %(uploader)s - %(title)s.%(ext)s"
7877 templateNameTitle = " %(title)s.%(ext)s"
@@ -93,6 +92,8 @@ foreach ($VarName in $Defaults.Keys) {
9392 Write-Host
9493 }
9594}
95+
96+ $myCookies = " "
9697# ===========================================================================
9798
9899New-Variable - Name FullDownloadDir - Value (Join-Path - Path " $DownloadsPath " - ChildPath " $DownloadFolderName " ) - Option Constant
@@ -617,7 +618,7 @@ if ($url -and -not $install -and -not $uninstall) {
617618 <# *==========================================================================
618619 * ℹ TEST COOKIES
619620 ===========================================================================#>
620- if (-not $UseBrowserCookies ) {
621+ if (( -not $UseBrowserCookies ) -and ( $myCookies ) ) {
621622 # Test cookie path
622623 if (Test-Path - Path $myCookies ) {
623624 Write-Host " `- Use user cookies from file" - ForegroundColor Green
You can’t perform that action at this time.
0 commit comments