From 1f29933dd597284a12e3371a31323c23c0aa16bc Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 11 Dec 2019 19:33:48 +0000 Subject: [PATCH 01/13] Help text change --- imports/ui/libraries/tab_Libraries_Folder.jsx | 2 +- package-lock.json | 5 +++++ package.json | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/imports/ui/libraries/tab_Libraries_Folder.jsx b/imports/ui/libraries/tab_Libraries_Folder.jsx index 995a2871..1304007f 100644 --- a/imports/ui/libraries/tab_Libraries_Folder.jsx +++ b/imports/ui/libraries/tab_Libraries_Folder.jsx @@ -1609,7 +1609,7 @@ SettingsDB.insert(thisLibrary)
- See the 'Plugins' tab guide for how the plugin stack works and for creating plugins.It is best practice to put video transcode plugins at the top of your stack (below re-order streams if that's enabled). + See the 'Plugins' tab guide for how the plugin stack works and for creating plugins.It is best practice to put video transcode plugins at the top of your stack.
Codec
), - accessor: 'video_codec_name', + accessor: 'ffProbeData.streams[0].codec_name', width: getColumnWidth(data, 'video_codec_name', 'Codec'), getProps: (state, rowInfo, column) => { return { From dd135ed1f8ecc74f73bd748ff61a5ecb539ccf44 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sat, 14 Dec 2019 02:07:16 +0000 Subject: [PATCH 06/13] Add options to sort queue by date file created/modified --- imports/ui/transcoding/tab_Transcoding.jsx | 24 ++++++++++----- server/main.js | 34 +++++++++++++++++++++- 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/imports/ui/transcoding/tab_Transcoding.jsx b/imports/ui/transcoding/tab_Transcoding.jsx index 9d8f1716..b9085163 100644 --- a/imports/ui/transcoding/tab_Transcoding.jsx +++ b/imports/ui/transcoding/tab_Transcoding.jsx @@ -948,17 +948,27 @@ class App extends Component { -Sort queue by:
-Oldest: +
Sort queue by:
+Oldest (Scanned): {this.renderSortBox('sortDateOldest')} - Newest: + Newest (Scanned): {this.renderSortBox('sortDateNewest')} - - Smallest: + + Oldest (Created): +{this.renderSortBox('sortDateFileCreatedOldest')} + Newest (Created): +{this.renderSortBox('sortDateFileCreatedNewest')} + + Oldest (Modified): +{this.renderSortBox('sortDateFileModifiedOldest')} + Newest (Modified): +{this.renderSortBox('sortDateFileModifiedNewest')} + + Smallest: {this.renderSortBox('sortSizeSmallest')} - Largest: + Largest: {this.renderSortBox('sortSizeLargest')} -
+Library alternation: {this.renderCheckBox('alternateLibraries')}
diff --git a/server/main.js b/server/main.js index dcde7be1..5aeda833 100644 --- a/server/main.js +++ b/server/main.js @@ -3704,7 +3704,39 @@ function tablesUpdate() { return new Date(b.createdAt) - new Date(a.createdAt); }); - } else if (globalSettings[0].queueSortType == "sortSizeSmallest") { + }else if (globalSettings[0].queueSortType == "sortDateFileCreatedOldest") { + + + allFilesPulledTable = allFilesPulledTable.sort(function (a, b) { + return new Date(a.statSync.ctime) - new Date(b.statSync.ctime); + }); + + + }else if (globalSettings[0].queueSortType == "sortDateFileCreatedNewest") { + + + allFilesPulledTable = allFilesPulledTable.sort(function (a, b) { + return new Date(b.statSync.ctime) - new Date(a.statSync.ctime); + }); + + } + + else if (globalSettings[0].queueSortType == "sortDateFileModifiedOldest") { + + + allFilesPulledTable = allFilesPulledTable.sort(function (a, b) { + return new Date(a.statSync.mtime) - new Date(b.statSync.mtime); + }); + + + }else if (globalSettings[0].queueSortType == "sortDateFileModifiedNewest") { + + + allFilesPulledTable = allFilesPulledTable.sort(function (a, b) { + return new Date(b.statSync.mtime) - new Date(a.statSync.mtime); + }); + + }else if (globalSettings[0].queueSortType == "sortSizeSmallest") { From d8ff5aa07cd564070b9706dcfa86667b3bf54e9b Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sat, 14 Dec 2019 02:23:59 +0000 Subject: [PATCH 07/13] Option for including files older than specified time --- .../pluginTemplates/Filter/FilterByAge.jsx | 36 +++++++++++++++---- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx b/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx index a506a876..1784f4cd 100644 --- a/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx +++ b/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx @@ -1,5 +1,6 @@ import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; +import Checkbox from '@material-ui/core/Checkbox'; import ReactDOM from 'react-dom'; @@ -18,6 +19,7 @@ export default class App extends Component { super(props); this.state = { + excludeSwitch:true, }; @@ -45,18 +47,24 @@ export default class App extends Component { var totalSeconds = (h * 3600) + (m * 60) + (s) + if(this.state.excludeSwitch === true){ - var obj = { - name: 'Filter by age', - filter: `library.filters.filterByAge(file,${totalSeconds})`, - description: `Files older than the following will be excluded from processing: ${string}` - } + var mode = 'exclude' - this.props.pushConditional(obj) + }else{ + var mode = 'include' + + } + var obj = { + name: 'Filter by age', + filter: `library.filters.filterByAge(file,${totalSeconds},'${mode}')`, + description: `Files older than the following will be ${mode}d from processing: ${string}` + } + this.props.pushConditional(obj) } @@ -76,7 +84,21 @@ export default class App extends Component { -Exclude files older than
Exclude
From 73b6c158c9dd51dcfaefc8c8313496ba62975faf Mon Sep 17 00:00:00 2001
From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
Date: Sat, 14 Dec 2019 02:36:55 +0000
Subject: [PATCH 08/13] Option to specify date modified or date created in
plugin creator
---
.../pluginTemplates/Filter/FilterByAge.jsx | 21 ++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx b/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx
index 1784f4cd..dc9afe8d 100644
--- a/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx
+++ b/imports/ui/plugins/pluginTemplates/Filter/FilterByAge.jsx
@@ -20,6 +20,7 @@ export default class App extends Component {
this.state = {
excludeSwitch:true,
+ dateType:'dateCreated'
};
@@ -60,7 +61,7 @@ export default class App extends Component {
var obj = {
name: 'Filter by age',
- filter: `library.filters.filterByAge(file,${totalSeconds},'${mode}')`,
+ filter: `library.filters.filterByAge(file,${totalSeconds},'${mode}','${this.state.dateType}')`,
description: `Files older than the following will be ${mode}d from processing: ${string}`
}
@@ -83,6 +84,24 @@ export default class App extends Component {
+
Date created
Exclude Date created
Exclude Exclude
+
H{'\u00A0'}{'\u00A0'} @@ -131,7 +131,7 @@ this.setState({
Sub-folders to ignore (e.g.: .grab,.index,User/AppData):
+File paths containing the following will be ignored (e.g.: .grab,.index,User/AppData,-trailer,.mp4):
Date: Sat, 18 Jan 2020 15:31:06 +0000 Subject: [PATCH 13/13] 1.102 release notes --- imports/ui/App.jsx | 13 ++++++++++++- imports/ui/tab_Dev.jsx | 20 +++++++++++++++++++- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx index 59744f5d..36fb748d 100644 --- a/imports/ui/App.jsx +++ b/imports/ui/App.jsx @@ -50,7 +50,7 @@ const AppRouter = () => { var version = GlobalSettingsDB.find({}).fetch()[0].version; - var newVersion = 1.101 + var newVersion = 1.102 setVersion(newVersion) @@ -58,6 +58,17 @@ const AppRouter = () => { alert(` + Beta v1.102 release [18th Jan 2020]: + Changes: + -[New] Plugin creator option (Filter by age) - select 'Date created' or 'Date modified' + -[New] Plugin creator option (Filter by age) - include files OLDER than specified time + -[New] Options to sort queue by date (Scanned, Created, Modified) + -[Fix] Audio file codec not showing in search results + -[Fix] MJPEG video incorrectly tagged as audio file + -[Fix] Default plugin priority + -[Fix] 'Too many packets buffered for output stream' when health checking + -[Fix] Folder path placeholder text + Beta v1.101 release [06 Dec 19]: Changes: -[New] Force processing of files diff --git a/imports/ui/tab_Dev.jsx b/imports/ui/tab_Dev.jsx index 5e05e47d..3bb3dbb8 100644 --- a/imports/ui/tab_Dev.jsx +++ b/imports/ui/tab_Dev.jsx @@ -120,7 +120,25 @@ export default class App extends Component {Change log
-Beta v1.101 release [06 Dec 19]: +
Beta v1.102 release [18th Jan 2020]:
+
+
Changes:
+
+
-[New] Plugin creator option (Filter by age) - select 'Date created' or 'Date modified'
+
-[New] Plugin creator option (Filter by age) - include files OLDER than specified time
+
-[New] Options to sort queue by date (Scanned, Created, Modified)
+
-[Fix] Audio file codec not showing in search results
+
-[Fix] MJPEG video incorrectly tagged as audio file
+
-[Fix] Default plugin priority
+
-[Fix] 'Too many packets buffered for output stream' when health checking
+
-[Fix] Folder path placeholder text
+
+
+
+
+
Beta v1.101 release [6th Dec 19]:
Changes: