Skip to content

Commit 1507011

Browse files
committed
feat: enhance metadata handling by adding support for title replacement in options
1 parent 692b896 commit 1507011

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

powershell/yt-download.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,10 @@ if ($url -and -not $install -and -not $uninstall) {
702702
$pattern = '--replace-in-metadata\s+?(.+?)\s+(.+?\$)\s?'
703703
$substitution = '--replace-in-metadata "$1" "$2" ""'
704704
$optionsString = $optionsString -replace $pattern, $substitution
705+
706+
$pattern = '--replace-in-metadata\s+?(title)\s+?(.+?)\s+(\S+)'
707+
$substitution = '--replace-in-metadata "$1" "$2" "$3"'
708+
$optionsString = $optionsString -replace $pattern, $substitution
705709
}
706710

707711
if ($SelectDownloadedFile -and -not $IsTest) {

0 commit comments

Comments
 (0)