make replace in metadata .* instead of .+

pull/815/head
deniscerri 1 year ago
parent 6f97d02910
commit 733e33ba78
No known key found for this signature in database
GPG Key ID: 95C43D517D830350

@ -858,13 +858,13 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
}
if(downloadItem.title.isNotBlank()){
metadataCommands.addOption("--replace-in-metadata", "title", ".+", downloadItem.title)
metadataCommands.addOption("--replace-in-metadata", "title", ".*", downloadItem.title)
metadataCommands.addOption("--parse-metadata", "%(title)s:%(meta_title)s")
}
if (downloadItem.author.isNotBlank()){
metadataCommands.addOption("--replace-in-metadata", "uploader", ".+", downloadItem.author)
metadataCommands.addOption("--replace-in-metadata", "uploader", ".*", downloadItem.author)
metadataCommands.addOption("--parse-metadata", "%(uploader)s:%(artist)s")
}

Loading…
Cancel
Save