mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-10 15:47:35 +02:00
Fix:Encode filename for audio player direct plays
This commit is contained in:
@ -138,6 +138,10 @@ function xmlToJson(xml) {
|
||||
}
|
||||
Vue.prototype.$xmlToJson = xmlToJson
|
||||
|
||||
Vue.prototype.$encodeUriPath = (path) => {
|
||||
return path.replace(/\\/g, '/').replace(/%/g, '%25').replace(/#/g, '%23')
|
||||
}
|
||||
|
||||
const encode = (text) => encodeURIComponent(Buffer.from(text).toString('base64'))
|
||||
Vue.prototype.$encode = encode
|
||||
const decode = (text) => Buffer.from(decodeURIComponent(text), 'base64').toString()
|
||||
|
Reference in New Issue
Block a user