Undoing changes caused by linter run amok

This commit is contained in:
Cassie Esposito 2022-05-24 17:30:16 -07:00
parent 6d947bbc29
commit b22173a631

View File

@ -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)
} }