mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix: thumbnails of videos containing '#' can't be downloaded
This commit is contained in:
parent
ad2539c28d
commit
b3e4a243a9
@ -172,7 +172,7 @@ class DownloadService : LifecycleService() {
|
|||||||
try {
|
try {
|
||||||
ImageHelper.downloadImage(
|
ImageHelper.downloadImage(
|
||||||
this@DownloadService,
|
this@DownloadService,
|
||||||
streams.thumbnailUrl,
|
ProxyHelper.rewriteUrlUsingProxyPreference(streams.thumbnailUrl),
|
||||||
thumbnailTargetPath
|
thumbnailTargetPath
|
||||||
)
|
)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
@ -29,7 +29,7 @@ object TextUtils {
|
|||||||
/**
|
/**
|
||||||
* Reserved characters by unix which can not be used for file name.
|
* 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.
|
* Date time formatter which uses the [FormatStyle.MEDIUM] format style.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user