mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-17 00:08:55 +01:00
Fix:Private Patreon feed URLs getting encoded twice #1600
This commit is contained in:
parent
40b808e73d
commit
8b557a0cb9
@ -56,7 +56,14 @@ class PodcastEpisodeDownload {
|
|||||||
setData(podcastEpisode, libraryItem, isAutoDownload, libraryId) {
|
setData(podcastEpisode, libraryItem, isAutoDownload, libraryId) {
|
||||||
this.id = getId('epdl')
|
this.id = getId('epdl')
|
||||||
this.podcastEpisode = podcastEpisode
|
this.podcastEpisode = podcastEpisode
|
||||||
this.url = encodeURI(podcastEpisode.enclosure.url)
|
|
||||||
|
const url = podcastEpisode.enclosure.url
|
||||||
|
if (decodeURIComponent(url) !== url) { // Already encoded
|
||||||
|
this.url = url
|
||||||
|
} else {
|
||||||
|
this.url = encodeURI(url)
|
||||||
|
}
|
||||||
|
|
||||||
this.libraryItem = libraryItem
|
this.libraryItem = libraryItem
|
||||||
this.isAutoDownload = isAutoDownload
|
this.isAutoDownload = isAutoDownload
|
||||||
this.createdAt = Date.now()
|
this.createdAt = Date.now()
|
||||||
|
Loading…
Reference in New Issue
Block a user