Skip to content

Commit

Permalink
Merge pull request #154 from HaveAGitGat/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
HaveAGitGat committed Feb 7, 2020
2 parents 4e1fa35 + 5d7e42c commit 09cfe34
Show file tree
Hide file tree
Showing 22 changed files with 1,241 additions and 483 deletions.
36 changes: 18 additions & 18 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
module.exports = {
apps : [
{
name: "Tdarr",
script: "./main.js",
watch: true,
detached: true,
env: {

"NODE_ENV": "production",
"PORT": 8265,
"MONGO_URL": "mongodb://localhost:27017/Tdarr",
"ROOT_URL":"http://localhost/",
"NODE_ENV": "production",

}
}
]
module.exports = {
apps : [
{
name: "Tdarr",
script: "./main.js",
watch: true,
detached: true,
env: {

"NODE_ENV": "production",
"PORT": 8265,
"MONGO_URL": "mongodb://localhost:27017/Tdarr",
"ROOT_URL":"http://localhost/",
"NODE_ENV": "production",

}
}
]
}
157 changes: 64 additions & 93 deletions imports/ui/App.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './styles/main.scss';
import LatestDevNotes from './tab_Dev_latest.jsx';

import React from 'react';
import {Nav, Navbar} from 'react-bootstrap';
Expand Down Expand Up @@ -37,123 +38,93 @@ const tabs = [

const AppRouter = () => {



const [basePath, setBasePath] = React.useState('');

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

const [newVersion, setNewVersion] = React.useState(1.104);



const [showUpdateScreen,setShowUpdateScreen] = React.useState(false);


toggleConsole = () => {

GlobalSettingsDB.upsert(
"globalsettings",
{
$set: {
version: newVersion,
}
}
);


setShowUpdateScreen(false)


}



React.useEffect(() => {



Meteor.subscribe('GlobalSettingsDB', () => {


const updatedBasePath = GlobalSettingsDB.find({}).fetch()[0].basePath;
setBasePath(updatedBasePath);


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

var newVersion = 1.103

setVersion(newVersion)

if(version != newVersion){

alert(`
Beta v1.103 release [27th Jan 2020]:
Changes:
-[New] Option to set folder watch scan interval (default 30 secs)
-[New] Button to skip all for transcode and health check queues
-[New] Option on 'Options' tab to toggle worker stall detector
-[New] Basic output file size estimation shown on workers
-[Re-Fix] Prevent too many workers being started
-[Fix] Links open correctly when using context menu
-[Fix] Images stored locally
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
-[New] Action: HandBrake basic options
-[New] Action: Add one audio stream
-[New] Action: Keep one audio stream
-[New] Action: Standardise audio stream codecs
-[New] Channel count now shown in streams table
-[Fix] Rare search result bug (no results shown)
-[Fix] Audio files with cover art being detected as video
v1.008 release [1st Dec 19]:
Changes:
-[New] Plugin creator UI and groundwork for future Filters and Actions. Filters now encapsulate Action taken. No separate Filter needed
-[New] Re-order streams plugin added by default for new libraries
-[New] Backup and restore feature (scheduled midnight backup)
-[New] Toggle copying to output folder if file already meets conditions
-[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)
-[Improvement] Idle CPU usage drastically reduced
-[Improvement] Various stability fixes
-[Improvement] Confirmation needed when restoring from backup
-[Fix] Video resolution boundaries improved
-[Fix] Non existent files + junk removed when running Find-New scan
-[Fix] Corrected error when creating remux container plugin
-[Fix] If one plugin has an error, the rest will still load
-[Fix] Auto cache cleaner disabled due to issues on some systems
-[Fix] Move item to Transcode:Error instead of Transcode:Not required if error with plugin
v1.007 release [22nd Nov 19]:
Changes:
-[New] Option to enable Linux FFmpeg NVENC binary (3.4.5 for unRAID compatibility)
-[New] Option to ignore source sub-folders
-[New] Skip health check button
-[New] Option to change visible queue length
-[New] Option to duplicate library
-[New] Customise search result columns
-[New] UI improvements (@jono)
-[New] Option to delete source file when using folder to folder conversion.
-[New] Community plugins (Remove commentary tracks etc)
-[New] Option to delete local plugins
-[New] Auto clean cache folder + preventing non-Tdarr cache files being deleted in case of incorrect mapping.
-[Fix] Reset processing status of all files on startup so no files stuck in limbo
-[Fix] Transcode pie showing incorrect data
-[Fix] Folder watcher will now wait longer to detect if a new file has finished copying
-[Fix] Folder to folder conversion: Files which already meet requirements will be copied to output folder
-[Fix] Folder to folder conversion: Cache/Output folder bug
-[Fix] Default containers to scan for now include ts/m2ts
-[Fix] Keep all stream types when using remux plugin creator
-[Fix] Prevent too many workers occassionally starting
-[Fix] Newly transcoded files will be bumped correctly to top of queue when sorting by size
-[Fix] Closed caption scanning now much faster & accurate (even on empty captions)
-[Fix] Plugin creator plugin path error
-[Fix] Health check error when using FFmpeg hardware transcoding
`)

GlobalSettingsDB.upsert(
"globalsettings",
{
$set: {
version: newVersion,
}
}
);
setShowUpdateScreen(true)
}
});
});

return (
<Router>




<div className={showUpdateScreen ? '' : 'd-none'}>

<div id="consoleBar" className="consoleBarClass">
<a href="javascript:void(0)" className="closebtn" onClick={this.toggleConsole}>X</a>
<p> </p>
<div id="consoleDiv" className="consoleDivClass">
<div className="updateScreen">


<h1>Change log</h1>

<LatestDevNotes />


</div>
</div>


</div>




</div>


<Navbar
className="mb-0 rounded-0 d-flex justify-content-between"
collapseOnSelect
Expand Down
44 changes: 37 additions & 7 deletions imports/ui/item_Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,45 @@ export default class App extends Component {
loading={true}
/>}





</div>

)

}
)}

if (this.props.type == "reScan") {

return (

<div>
{this.state.isShowState && <Button variant="outline-light" onClick={() => {


this.triggerLoadState();

Meteor.call('modifyFileDB','removeOne',this.props.file._id, (error, result) => {})

var obj = {
HealthCheck: "Queued",
TranscodeDecisionMaker: "Queued",
cliLog: "",
bumped: false,
history: ""
}
Meteor.call('scanFiles', this.props.file.DB, [this.props.file._id], 0, 3, obj, function (error, result) { });


}}><span className="buttonTextSize">{this.props.symbol}</span></Button>}

{this.state.isLoadState && <ClipLoader

sizeUnit={"px"}
size={25}
color={'white'}
loading={true}
/>}

</div>

)}



Expand Down
Loading

0 comments on commit 09cfe34

Please sign in to comment.