Skip to content

Commit b3e4a24

Browse files
committed
fix: thumbnails of videos containing '#' can't be downloaded
1 parent ad2539c commit b3e4a24

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/github/libretube/services/DownloadService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class DownloadService : LifecycleService() {
172172
try {
173173
ImageHelper.downloadImage(
174174
this@DownloadService,
175-
streams.thumbnailUrl,
175+
ProxyHelper.rewriteUrlUsingProxyPreference(streams.thumbnailUrl),
176176
thumbnailTargetPath
177177
)
178178
} catch (e: Exception) {

app/src/main/java/com/github/libretube/util/TextUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ object TextUtils {
2929
/**
3030
* Reserved characters by unix which can not be used for file name.
3131
*/
32-
const val RESERVED_CHARS = "?:\"*|/\\<>\u0000"
32+
const val RESERVED_CHARS = "#?:\"*|/\\<>\u0000"
3333

3434
/**
3535
* Date time formatter which uses the [FormatStyle.MEDIUM] format style.

0 commit comments

Comments
 (0)