Skip to content

Commit

Permalink
3.7.0 Final Public
Browse files Browse the repository at this point in the history
  • Loading branch information
INSANITY\Inrix authored and INSANITY\Inrix committed Feb 6, 2018
1 parent 7c22005 commit db6c571
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ v3.7.0
- Fixed episode naming for plex sorting with dashes
- Changed default floatplaneServer to use Edge02-na.floatplaneclub.com vs Edge01-na.floatplaneclub.com (Seems to perform better)
- Added "floatplaneServer" setting
- Added "niceErrors" setting
- Added "formatWithDate" setting
- Fixed a issue with creating missing directories
- Added ability to sort episodes by Year or Month in plex as a fake season. Read updated plex guide for info
Expand All @@ -20,7 +21,8 @@ v3.7.0
- Added "plexScannerInstall" setting
- Integrated plex library updates into the script, see settings wiki for more info
- Commented all new code

- Fixed BitWit title naming having incorrect dashes
- Added Redundancy to Update.bat and Install.bat

v3.6.2
- Added coloured console printouts
Expand Down
9 changes: 7 additions & 2 deletions float.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const multi = new Multiprogress(process.stdout);
const fs = require('fs');
const pad = require('pad');
const spawn = require('child_process').spawn;
const AdmZip = require('adm-zip');

process.on('uncaughtException', function(err) { // "Nice" Error handling, will obscure unknown errors, remove or comment for full debugging
if (err == "TypeError: Cannot read property '0' of undefined") { // If this error
Expand Down Expand Up @@ -57,7 +58,7 @@ if (settings.useFloatplane == true){ // Create the array containing the details
}
if (settings.useBitWit == true) {
channels.push({'url': 'https://linustechtips.com/main/forum/93-bitwit-ultra.xml', 'name': 'BitWit Ultra', 'subChannels': [
{'raw': '', 'formatted': 'BitWit Ultra', 'name': 'BitWit Ultra', 'replace': '', 'episode_number': 0, 'extra': ' - '}
{'raw': '', 'formatted': 'BitWit Ultra', 'name': 'BitWit Ultra', 'replace': '', 'episode_number': 0, 'extra': ''}
]})
}
files = glob.sync("./node_modules/ffmpeg-binaries/bin/ffmpeg.exe") // Check if the video already exists based on the above match
Expand Down Expand Up @@ -342,7 +343,11 @@ function findVideos() {
console.log(return_title, '== \u001b[32mEXISTS\u001b[0m');
} else {
updatePlex = true
title = title.replace(/:/g, ' -').replace(/ - /g, ' ').replace(/ /g, ' ').replace(thisChannel.replace, titlePrefix+' -') // Cleaning up title and fixes for plex naming being weird
if(thisChannel.name != 'BitWit Ultra') { // Fix for bitwit with the new dash renaming for plex
title = title.replace(/:/g, ' -').replace(/ - /g, ' ').replace(/ /g, ' ').replace(thisChannel.replace, titlePrefix+' -') // Cleaning up title and fixes for plex naming being weird
} else {
title = title.replace(/:/g, ' -').replace(/ - /g, ' ').replace(/ /g, ' ').replace(thisChannel.replace, titlePrefix+' - ') // Cleaning up title and fixes for plex naming being weird
}
thisChannel.episode_number += 1 // Increment the episode number for this subChannel
title = title.replace('@CES ', ' @CES ') // Dirty fix for CES2018 content
title = sanitize(title);
Expand Down
Binary file modified releases/3.7.0.zip
Binary file not shown.

0 comments on commit db6c571

Please sign in to comment.