mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-31 19:18:57 +01:00
Remove comments from scanner
This commit is contained in:
parent
1c9e56ce2e
commit
2e6e4f970c
@ -205,8 +205,6 @@ class Scanner {
|
|||||||
checkRes.libraryItem = libraryItem
|
checkRes.libraryItem = libraryItem
|
||||||
checkRes.scanData = dataFound
|
checkRes.scanData = dataFound
|
||||||
|
|
||||||
console.log('Has New Library Files', libraryItem.media.metadata.title, 'num new', checkRes.newLibraryFiles.length)
|
|
||||||
|
|
||||||
if (global.ServerSettings.scannerUseSingleThreadedProber) {
|
if (global.ServerSettings.scannerUseSingleThreadedProber) {
|
||||||
// If this item will go over max size then push current chunk
|
// If this item will go over max size then push current chunk
|
||||||
if (libraryItem.audioFileTotalSize + itemDataToRescanSize > MaxSizePerChunk && itemDataToRescan.length > 0) {
|
if (libraryItem.audioFileTotalSize + itemDataToRescanSize > MaxSizePerChunk && itemDataToRescan.length > 0) {
|
||||||
@ -242,7 +240,7 @@ class Scanner {
|
|||||||
// Potential NEW Library Items
|
// Potential NEW Library Items
|
||||||
for (let i = 0; i < libraryItemDataFound.length; i++) {
|
for (let i = 0; i < libraryItemDataFound.length; i++) {
|
||||||
var dataFound = libraryItemDataFound[i]
|
var dataFound = libraryItemDataFound[i]
|
||||||
console.log('Potential new library item data')
|
|
||||||
var hasMediaFile = dataFound.libraryFiles.some(lf => lf.isMediaFile)
|
var hasMediaFile = dataFound.libraryFiles.some(lf => lf.isMediaFile)
|
||||||
if (!hasMediaFile) {
|
if (!hasMediaFile) {
|
||||||
libraryScan.addLog(LogLevel.WARN, `Item found "${libraryItemDataFound.path}" has no media files`)
|
libraryScan.addLog(LogLevel.WARN, `Item found "${libraryItemDataFound.path}" has no media files`)
|
||||||
|
Loading…
Reference in New Issue
Block a user