mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-19 15:18:35 +01:00
Fix: book id length & check duplicate ids, Change: library to lazy load book cards
This commit is contained in:
1 parent
ca6f2c01f6
commit
72f9732b67
18 files changed
+466
-86
No files matched your search
@@ -58,3 +58,9 @@ const xmlToJSON = (xml) => {
|
||||
})
|
||||
}
|
||||
module.exports.xmlToJSON = xmlToJSON
|
||||
|
||||
module.exports.getId = (prepend = '') => {
|
||||
var _id = Math.random().toString(36).substring(2, 8) + Math.random().toString(36).substring(2, 8) + Math.random().toString(36).substring(2, 8)
|
||||
if (prepend) return prepend + '_' + _id
|
||||
return _id
|
||||
}
|
||||
Reference in new issue
Block a user