mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Undoing changes caused by linter run amok
This commit is contained in:
parent
6d947bbc29
commit
b22173a631
@ -330,10 +330,12 @@ async function getLibraryItemFileData(libraryMediaType, folder, libraryItemPath,
|
|||||||
var fileItems = []
|
var fileItems = []
|
||||||
|
|
||||||
if (isSingleMediaItem) { // Single media item in root of folder
|
if (isSingleMediaItem) { // Single media item in root of folder
|
||||||
fileItems = [{
|
fileItems = [
|
||||||
|
{
|
||||||
fullpath: libraryItemPath,
|
fullpath: libraryItemPath,
|
||||||
path: libraryItemDir // actually the relPath (only filename here)
|
path: libraryItemDir // actually the relPath (only filename here)
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
libraryItemData = {
|
libraryItemData = {
|
||||||
path: libraryItemPath, // full path
|
path: libraryItemPath, // full path
|
||||||
relPath: libraryItemDir, // only filename
|
relPath: libraryItemDir, // only filename
|
||||||
@ -366,7 +368,7 @@ async function getLibraryItemFileData(libraryMediaType, folder, libraryItemPath,
|
|||||||
for (let i = 0; i < fileItems.length; i++) {
|
for (let i = 0; i < fileItems.length; i++) {
|
||||||
var fileItem = fileItems[i]
|
var fileItem = fileItems[i]
|
||||||
var newLibraryFile = new LibraryFile()
|
var newLibraryFile = new LibraryFile()
|
||||||
// fileItem.path is the relative path
|
// fileItem.path is the relative path
|
||||||
await newLibraryFile.setDataFromPath(fileItem.fullpath, fileItem.path)
|
await newLibraryFile.setDataFromPath(fileItem.fullpath, fileItem.path)
|
||||||
libraryItem.libraryFiles.push(newLibraryFile)
|
libraryItem.libraryFiles.push(newLibraryFile)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user