fix: duplicate download

This commit is contained in:
rebelonion 2024-04-21 08:06:23 -05:00
parent 4ffe9d7505
commit 870cb751a4
4 changed files with 9 additions and 4 deletions

View file

@ -369,7 +369,7 @@ class DownloadsManager(private val context: Context) {
}
private const val RESERVED_CHARS = "|\\?*<\":>+[]/'"
private fun String?.findValidName(): String {
fun String?.findValidName(): String {
return this?.filterNot { RESERVED_CHARS.contains(it) } ?: ""
}