mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-30 04:04:06 +01:00
Remove unused old model functions
This commit is contained in:
1 parent
4a5f534a65
commit
920ddf43d7
16 files changed
+15
-784
No files matched your search
@@ -55,19 +55,6 @@ class VideoMetadata {
|
||||
return getTitlePrefixAtEnd(this.title)
|
||||
}
|
||||
|
||||
searchQuery(query) { // Returns key if match is found
|
||||
var keysToCheck = ['title']
|
||||
for (var key of keysToCheck) {
|
||||
if (this[key] && String(this[key]).toLowerCase().includes(query)) {
|
||||
return {
|
||||
matchKey: key,
|
||||
matchText: this[key]
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
setData(mediaMetadata = {}) {
|
||||
this.title = mediaMetadata.title || null
|
||||
this.description = mediaMetadata.description || null
|
||||
|
||||
Reference in new issue
Block a user