fix: thumbnails of videos containing '#' can't be downloaded

This commit is contained in:
Bnyro 2025-03-31 17:18:45 +02:00
parent ad2539c28d
commit b3e4a243a9
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ class DownloadService : LifecycleService() {
try {
ImageHelper.downloadImage(
this@DownloadService,
streams.thumbnailUrl,
ProxyHelper.rewriteUrlUsingProxyPreference(streams.thumbnailUrl),
thumbnailTargetPath
)
} catch (e: Exception) {

View File

@ -29,7 +29,7 @@ object TextUtils {
/**
* Reserved characters by unix which can not be used for file name.
*/
const val RESERVED_CHARS = "?:\"*|/\\<>\u0000"
const val RESERVED_CHARS = "#?:\"*|/\\<>\u0000"
/**
* Date time formatter which uses the [FormatStyle.MEDIUM] format style.