mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 07:20:30 +05:30
Merge pull request #7260 from Bnyro/master
fix: thumbnails of videos containing '#' can't be downloaded
This commit is contained in:
commit
b4477b8c4e
@ -172,7 +172,7 @@ class DownloadService : LifecycleService() {
|
||||
try {
|
||||
ImageHelper.downloadImage(
|
||||
this@DownloadService,
|
||||
streams.thumbnailUrl,
|
||||
ProxyHelper.rewriteUrlUsingProxyPreference(streams.thumbnailUrl),
|
||||
thumbnailTargetPath
|
||||
)
|
||||
} catch (e: Exception) {
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user