Stream CBZ contents directly from the archive instead of unzipping and caching files (#2229)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
-13
@@ -47,7 +47,6 @@ export class GlobalPreferencesComponent implements OnInit {
|
||||
private messageService = inject(MessageService);
|
||||
|
||||
appSettings$: Observable<AppSettings | null> = this.appSettingsService.appSettings$;
|
||||
cbxCacheValue?: number;
|
||||
maxFileUploadSizeInMb?: number;
|
||||
|
||||
ngOnInit(): void {
|
||||
@@ -55,9 +54,6 @@ export class GlobalPreferencesComponent implements OnInit {
|
||||
filter(settings => !!settings),
|
||||
take(1)
|
||||
).subscribe(settings => {
|
||||
if (settings?.cbxCacheSizeInMb) {
|
||||
this.cbxCacheValue = settings.cbxCacheSizeInMb;
|
||||
}
|
||||
if (settings?.maxFileUploadSizeInMb) {
|
||||
this.maxFileUploadSizeInMb = settings.maxFileUploadSizeInMb;
|
||||
}
|
||||
@@ -89,15 +85,6 @@ export class GlobalPreferencesComponent implements OnInit {
|
||||
this.saveSetting(AppSettingKey.COVER_CROPPING_SETTINGS, this.coverCroppingSettings);
|
||||
}
|
||||
|
||||
saveCacheSize(): void {
|
||||
if (!this.cbxCacheValue || this.cbxCacheValue <= 0) {
|
||||
this.showMessage('error', 'Invalid Input', 'Please enter a valid cache size in MB.');
|
||||
return;
|
||||
}
|
||||
|
||||
this.saveSetting(AppSettingKey.CBX_CACHE_SIZE_IN_MB, this.cbxCacheValue);
|
||||
}
|
||||
|
||||
saveFileSize() {
|
||||
if (!this.maxFileUploadSizeInMb || this.maxFileUploadSizeInMb <= 0) {
|
||||
this.showMessage('error', 'Invalid Input', 'Please enter a valid max file upload size in MB.');
|
||||
|
||||
Reference in New Issue
Block a user