mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
added archiving flag to libraries. If a library is deleted or excluded the entire library and its contents are archived when the sync process is run Added archive toggle in libraries to show/hide archived libraries Still need to add functionality to bulk purge archived data for a library or for selected items in the library. cleaned up duplicate statement in migration 46 uncommented backwards navigation code when purge completes
28 lines
751 B
JavaScript
28 lines
751 B
JavaScript
////////////////////////// pn delete move to playback
|
|
const jf_libraries_columns = [
|
|
"Id",
|
|
"Name",
|
|
"ServerId",
|
|
"IsFolder",
|
|
"Type",
|
|
"CollectionType",
|
|
"ImageTagsPrimary",
|
|
"archived",
|
|
];
|
|
|
|
const jf_libraries_mapping = (item) => ({
|
|
Id: item.Id,
|
|
Name: item.Name,
|
|
ServerId: item.ServerId,
|
|
IsFolder: item.IsFolder,
|
|
Type: item.Type,
|
|
CollectionType: item.CollectionType? item.CollectionType : 'mixed',
|
|
ImageTagsPrimary:
|
|
item.ImageTags && item.ImageTags.Primary ? item.ImageTags.Primary : null,
|
|
archived: false,
|
|
});
|
|
|
|
module.exports = {
|
|
jf_libraries_columns,
|
|
jf_libraries_mapping,
|
|
}; |