Skip to content

Commit 09cfe34

Browse files
authored
Merge pull request #154 from HaveAGitGat/dev
Dev
2 parents 4e1fa35 + 5d7e42c commit 09cfe34

File tree

22 files changed

+1241
-483
lines changed

22 files changed

+1241
-483
lines changed

ecosystem.config.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
module.exports = {
2-
apps : [
3-
{
4-
name: "Tdarr",
5-
script: "./main.js",
6-
watch: true,
7-
detached: true,
8-
env: {
9-
10-
"NODE_ENV": "production",
11-
"PORT": 8265,
12-
"MONGO_URL": "mongodb://localhost:27017/Tdarr",
13-
"ROOT_URL":"http://localhost/",
14-
"NODE_ENV": "production",
15-
16-
}
17-
}
18-
]
1+
module.exports = {
2+
apps : [
3+
{
4+
name: "Tdarr",
5+
script: "./main.js",
6+
watch: true,
7+
detached: true,
8+
env: {
9+
10+
"NODE_ENV": "production",
11+
"PORT": 8265,
12+
"MONGO_URL": "mongodb://localhost:27017/Tdarr",
13+
"ROOT_URL":"http://localhost/",
14+
"NODE_ENV": "production",
15+
16+
}
17+
}
18+
]
1919
}

imports/ui/App.jsx

Lines changed: 64 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import './styles/main.scss';
2+
import LatestDevNotes from './tab_Dev_latest.jsx';
23

34
import React from 'react';
45
import {Nav, Navbar} from 'react-bootstrap';
@@ -37,123 +38,93 @@ const tabs = [
3738

3839
const AppRouter = () => {
3940

41+
42+
4043
const [basePath, setBasePath] = React.useState('');
4144

4245
const [currentVersion, setVersion] = React.useState('');
4346

47+
const [newVersion, setNewVersion] = React.useState(1.104);
48+
49+
50+
51+
const [showUpdateScreen,setShowUpdateScreen] = React.useState(false);
52+
53+
54+
toggleConsole = () => {
55+
56+
GlobalSettingsDB.upsert(
57+
"globalsettings",
58+
{
59+
$set: {
60+
version: newVersion,
61+
}
62+
}
63+
);
64+
65+
66+
setShowUpdateScreen(false)
67+
68+
69+
}
70+
4471

4572

4673
React.useEffect(() => {
74+
75+
76+
4777
Meteor.subscribe('GlobalSettingsDB', () => {
78+
79+
4880
const updatedBasePath = GlobalSettingsDB.find({}).fetch()[0].basePath;
4981
setBasePath(updatedBasePath);
82+
5083

5184
var version = GlobalSettingsDB.find({}).fetch()[0].version;
5285

53-
var newVersion = 1.103
5486

5587
setVersion(newVersion)
5688

5789
if(version != newVersion){
5890

59-
alert(`
60-
61-
Beta v1.103 release [27th Jan 2020]:
62-
Changes:
63-
-[New] Option to set folder watch scan interval (default 30 secs)
64-
-[New] Button to skip all for transcode and health check queues
65-
-[New] Option on 'Options' tab to toggle worker stall detector
66-
-[New] Basic output file size estimation shown on workers
67-
-[Re-Fix] Prevent too many workers being started
68-
-[Fix] Links open correctly when using context menu
69-
-[Fix] Images stored locally
70-
71-
Beta v1.102 release [18th Jan 2020]:
72-
Changes:
73-
-[New] Plugin creator option (Filter by age) - select 'Date created' or 'Date modified'
74-
-[New] Plugin creator option (Filter by age) - include files OLDER than specified time
75-
-[New] Options to sort queue by date (Scanned, Created, Modified)
76-
-[Fix] Audio file codec not showing in search results
77-
-[Fix] MJPEG video incorrectly tagged as audio file
78-
-[Fix] Default plugin priority
79-
-[Fix] 'Too many packets buffered for output stream' when health checking
80-
-[Fix] Folder path placeholder text
81-
82-
Beta v1.101 release [06 Dec 19]:
83-
Changes:
84-
-[New] Force processing of files
85-
-[New] Action: HandBrake basic options
86-
-[New] Action: Add one audio stream
87-
-[New] Action: Keep one audio stream
88-
-[New] Action: Standardise audio stream codecs
89-
-[New] Channel count now shown in streams table
90-
-[Fix] Rare search result bug (no results shown)
91-
-[Fix] Audio files with cover art being detected as video
92-
93-
v1.008 release [1st Dec 19]:
94-
Changes:
95-
-[New] Plugin creator UI and groundwork for future Filters and Actions. Filters now encapsulate Action taken. No separate Filter needed
96-
-[New] Re-order streams plugin added by default for new libraries
97-
-[New] Backup and restore feature (scheduled midnight backup)
98-
-[New] Toggle copying to output folder if file already meets conditions
99-
-[Improvement] Change to how plugins are imported. Built-in NodeJS modules can now be used when creating plugins. (Can use e.g. require('fs') etc)
100-
-[Improvement] Idle CPU usage drastically reduced
101-
-[Improvement] Various stability fixes
102-
-[Improvement] Confirmation needed when restoring from backup
103-
-[Fix] Video resolution boundaries improved
104-
-[Fix] Non existent files + junk removed when running Find-New scan
105-
-[Fix] Corrected error when creating remux container plugin
106-
-[Fix] If one plugin has an error, the rest will still load
107-
-[Fix] Auto cache cleaner disabled due to issues on some systems
108-
-[Fix] Move item to Transcode:Error instead of Transcode:Not required if error with plugin
109-
110-
111-
112-
v1.007 release [22nd Nov 19]:
113-
Changes:
114-
-[New] Option to enable Linux FFmpeg NVENC binary (3.4.5 for unRAID compatibility)
115-
-[New] Option to ignore source sub-folders
116-
-[New] Skip health check button
117-
-[New] Option to change visible queue length
118-
-[New] Option to duplicate library
119-
-[New] Customise search result columns
120-
-[New] UI improvements (@jono)
121-
-[New] Option to delete source file when using folder to folder conversion.
122-
-[New] Community plugins (Remove commentary tracks etc)
123-
-[New] Option to delete local plugins
124-
-[New] Auto clean cache folder + preventing non-Tdarr cache files being deleted in case of incorrect mapping.
125-
-[Fix] Reset processing status of all files on startup so no files stuck in limbo
126-
-[Fix] Transcode pie showing incorrect data
127-
-[Fix] Folder watcher will now wait longer to detect if a new file has finished copying
128-
-[Fix] Folder to folder conversion: Files which already meet requirements will be copied to output folder
129-
-[Fix] Folder to folder conversion: Cache/Output folder bug
130-
-[Fix] Default containers to scan for now include ts/m2ts
131-
-[Fix] Keep all stream types when using remux plugin creator
132-
-[Fix] Prevent too many workers occassionally starting
133-
-[Fix] Newly transcoded files will be bumped correctly to top of queue when sorting by size
134-
-[Fix] Closed caption scanning now much faster & accurate (even on empty captions)
135-
-[Fix] Plugin creator plugin path error
136-
-[Fix] Health check error when using FFmpeg hardware transcoding
137-
138-
139-
140-
141-
`)
142-
143-
GlobalSettingsDB.upsert(
144-
"globalsettings",
145-
{
146-
$set: {
147-
version: newVersion,
148-
}
149-
}
150-
);
91+
setShowUpdateScreen(true)
15192
}
15293
});
15394
});
15495

15596
return (
15697
<Router>
98+
99+
100+
101+
102+
<div className={showUpdateScreen ? '' : 'd-none'}>
103+
104+
<div id="consoleBar" className="consoleBarClass">
105+
<a href="javascript:void(0)" className="closebtn" onClick={this.toggleConsole}>X</a>
106+
<p> </p>
107+
<div id="consoleDiv" className="consoleDivClass">
108+
<div className="updateScreen">
109+
110+
111+
<h1>Change log</h1>
112+
113+
<LatestDevNotes />
114+
115+
116+
</div>
117+
</div>
118+
119+
120+
</div>
121+
122+
123+
124+
125+
</div>
126+
127+
157128
<Navbar
158129
className="mb-0 rounded-0 d-flex justify-content-between"
159130
collapseOnSelect

imports/ui/item_Button.jsx

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,45 @@ export default class App extends Component {
137137
loading={true}
138138
/>}
139139

140-
141-
142-
143-
144140
</div>
145141

146-
)
147-
148-
}
142+
)}
143+
144+
if (this.props.type == "reScan") {
145+
146+
return (
147+
148+
<div>
149+
{this.state.isShowState && <Button variant="outline-light" onClick={() => {
150+
151+
152+
this.triggerLoadState();
153+
154+
Meteor.call('modifyFileDB','removeOne',this.props.file._id, (error, result) => {})
155+
156+
var obj = {
157+
HealthCheck: "Queued",
158+
TranscodeDecisionMaker: "Queued",
159+
cliLog: "",
160+
bumped: false,
161+
history: ""
162+
}
163+
Meteor.call('scanFiles', this.props.file.DB, [this.props.file._id], 0, 3, obj, function (error, result) { });
164+
165+
166+
}}><span className="buttonTextSize">{this.props.symbol}</span></Button>}
167+
168+
{this.state.isLoadState && <ClipLoader
169+
170+
sizeUnit={"px"}
171+
size={25}
172+
color={'white'}
173+
loading={true}
174+
/>}
175+
176+
</div>
177+
178+
)}
149179

150180

151181

0 commit comments

Comments
 (0)