mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-01 03:29:03 +01:00
Fix:RSS Feed cover, Update:Remove experimental scanner
This commit is contained in:
parent
2e6e4f970c
commit
18123664ee
@ -157,7 +157,7 @@
|
|||||||
</ui-tooltip>
|
</ui-tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center py-2">
|
<!-- <div class="flex items-center py-2">
|
||||||
<ui-text-input type="number" v-model="newServerSettings.scannerMaxThreads" no-spinner :disabled="updatingServerSettings" :padding-x="1" text-center class="w-10" @change="updateScannerMaxThreads" />
|
<ui-text-input type="number" v-model="newServerSettings.scannerMaxThreads" no-spinner :disabled="updatingServerSettings" :padding-x="1" text-center class="w-10" @change="updateScannerMaxThreads" />
|
||||||
<ui-tooltip :text="tooltips.scannerMaxThreads">
|
<ui-tooltip :text="tooltips.scannerMaxThreads">
|
||||||
<p class="pl-4">
|
<p class="pl-4">
|
||||||
@ -165,8 +165,7 @@
|
|||||||
<span class="material-icons icon-text text-sm">info_outlined</span>
|
<span class="material-icons icon-text text-sm">info_outlined</span>
|
||||||
</p>
|
</p>
|
||||||
</ui-tooltip>
|
</ui-tooltip>
|
||||||
<!-- <p class="pl-4 text-sm"></p> -->
|
</div> -->
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pt-4">
|
<div class="pt-4">
|
||||||
<h2 class="font-semibold">Experimental Features</h2>
|
<h2 class="font-semibold">Experimental Features</h2>
|
||||||
@ -196,7 +195,7 @@
|
|||||||
</ui-tooltip>
|
</ui-tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center py-2">
|
<!-- <div class="flex items-center py-2">
|
||||||
<ui-toggle-switch v-model="newServerSettings.scannerUseSingleThreadedProber" :disabled="updatingServerSettings" @input="(val) => updateSettingsKey('scannerUseSingleThreadedProber', val)" />
|
<ui-toggle-switch v-model="newServerSettings.scannerUseSingleThreadedProber" :disabled="updatingServerSettings" @input="(val) => updateSettingsKey('scannerUseSingleThreadedProber', val)" />
|
||||||
<ui-tooltip :text="tooltips.scannerUseSingleThreadedProber">
|
<ui-tooltip :text="tooltips.scannerUseSingleThreadedProber">
|
||||||
<p class="pl-4">
|
<p class="pl-4">
|
||||||
@ -204,7 +203,7 @@
|
|||||||
<span class="material-icons icon-text text-sm">info_outlined</span>
|
<span class="material-icons icon-text text-sm">info_outlined</span>
|
||||||
</p>
|
</p>
|
||||||
</ui-tooltip>
|
</ui-tooltip>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -68,9 +68,9 @@ class RssFeedManager {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const extname = Path.extname(feedData.coverPath).toLowerCase().slice(1)
|
const extname = Path.extname(feed.coverPath).toLowerCase().slice(1)
|
||||||
res.type(`image/${extname}`)
|
res.type(`image/${extname}`)
|
||||||
var readStream = fs.createReadStream(feedData.coverPath)
|
var readStream = fs.createReadStream(feed.coverPath)
|
||||||
readStream.pipe(res)
|
readStream.pipe(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class ServerSettings {
|
|||||||
this.scannerPreferMatchedMetadata = false
|
this.scannerPreferMatchedMetadata = false
|
||||||
this.scannerDisableWatcher = false
|
this.scannerDisableWatcher = false
|
||||||
this.scannerPreferOverdriveMediaMarker = false
|
this.scannerPreferOverdriveMediaMarker = false
|
||||||
this.scannerUseSingleThreadedProber = false
|
this.scannerUseSingleThreadedProber = true
|
||||||
this.scannerMaxThreads = 0 // 0 = defaults to CPUs * 2
|
this.scannerMaxThreads = 0 // 0 = defaults to CPUs * 2
|
||||||
|
|
||||||
// Metadata - choose to store inside users library item folder
|
// Metadata - choose to store inside users library item folder
|
||||||
@ -74,6 +74,9 @@ class ServerSettings {
|
|||||||
this.scannerDisableWatcher = !!settings.scannerDisableWatcher
|
this.scannerDisableWatcher = !!settings.scannerDisableWatcher
|
||||||
this.scannerPreferOverdriveMediaMarker = !!settings.scannerPreferOverdriveMediaMarker
|
this.scannerPreferOverdriveMediaMarker = !!settings.scannerPreferOverdriveMediaMarker
|
||||||
this.scannerUseSingleThreadedProber = !!settings.scannerUseSingleThreadedProber
|
this.scannerUseSingleThreadedProber = !!settings.scannerUseSingleThreadedProber
|
||||||
|
if (settings.scannerUseSingleThreadedProber === undefined) { // Default to original scanner
|
||||||
|
this.scannerUseSingleThreadedProber = true
|
||||||
|
}
|
||||||
this.scannerMaxThreads = isNullOrNaN(settings.scannerMaxThreads) ? 0 : Number(settings.scannerMaxThreads)
|
this.scannerMaxThreads = isNullOrNaN(settings.scannerMaxThreads) ? 0 : Number(settings.scannerMaxThreads)
|
||||||
|
|
||||||
this.storeCoverWithItem = !!settings.storeCoverWithItem
|
this.storeCoverWithItem = !!settings.storeCoverWithItem
|
||||||
|
Loading…
Reference in New Issue
Block a user