feat: video fixing options

This commit is contained in:
rebelonion 2024-05-20 11:15:11 -05:00
parent c2a10c233d
commit 10df1986e8
6 changed files with 112 additions and 3 deletions

View file

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