Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize logging and new options #38

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions Emby.AutoOrganize/Configuration/autoorganizelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,16 @@
return;
}

var message = 'The following file will be moved from:' + '<br/><br/>' + item.OriginalPath + '<br/><br/>' + 'To:' + '<br/><br/>' + item.TargetPath;
for (var i = 0; i < item.DuplicatePaths.length; i++) { //remove the target filename from the list (as we will overwrite it and better for display)
if (item.DuplicatePaths[i].replace(/^.*[\\\/]/, '') === item.TargetPath.replace(/^.*[\\\/]/, '')) {
item.DuplicatePaths.splice(i, 1);
i--;
}
}

if (item.DuplicatePaths.length) {
var message = 'The following file will be moved from:' + '<br/><br/>' + item.OriginalPath + '<br/><br/>' + 'To:' + '<br/><br/>' + item.TargetPath;
if (item.DuplicatePaths.length > 0) {
message += '<br/><br/>' + 'The following duplicates will be deleted:';

message += '<br/><br/>' + item.DuplicatePaths.join('<br/>');
}

Expand Down Expand Up @@ -386,9 +391,9 @@

var html = '';

html += '<td class="detailTableBodyCell">';
html += '<td class="detailTableBodyCell" style="width:25px">';
var hide = item.IsInProgress ? '' : ' hide';
html += '<img src="css/images/throbber.gif" alt="" class="syncSpinner' + hide + '" style="vertical-align: middle;" />';
html += ' <img class="' + hide + '" src="data:image/gif;base64,R0lGODlhGQAZANUAAHyyRMTarOTu1JzCbPT67NTmvIy+XPT27KzOhOz25Pz69MzitOzy3NzqzJS+XLTWlIS6VNTqxLTSlPz+/JTCZHy2RMTerOTy3KTKfPT69NTmxKzSjPz6/MzivOzy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B4GHYCVNBAaEjQjA1ALVyY+DxVQFkCSHgidkDVUAwYYqkiYvXWWvjOpNoFVgoepDx0SiCkUFgXHMRsTa5cWAEeZews9JWB7BVtWllcrFRMVQCXIx421qi3B857zwuw/h0qAdBwhACH5BAkDAB0ALAAAAAAZABkAhHyyRMTapOTu1KTKfPT69JS+ZNTmvPT27IS6TOz25LzWnOzy3Pz69MzivLTSlJzGbNzqzIy+XPz+/IS2TMTerOTu3KzSjJTCbNTmxIS6VLzapOzy5Pz6/P7+/gAAAAAAAAXXoMRJ3WiSZyp2a+e+cCy/Yq0eWGLvI8v5qE4FAZgsSjNSTKLUAJ4aF4OgpPU4lEkhwTE8AQZJJQNwME0u1FfBogwoJMeXICNJCs8GTeosVoElCRoNTC5XDBoOAjs8EgyNTI+PJ2mGM3V0SxUPAXUxDBcAnWkjchNnKCs1EE8RLKgCDxoqtKEBIj9Il0kMnrq7lzUlNqRKI8SvVxIKAsonDhEbqrkvHAhsSREAGEmGxy4EAZkcGxh/LEhnPh2sEK+puaglKhI6HPc7w8D7vvzA8OsCVqEmIQQAIfkECQMAHgAsAAAAABkAGQCEfLJExN6s5O7UpMZ09Pr01OK8rM6EjL5c9PbsjLpUzN607Pbk/Pr03OrMtNKMhLZE7PLkpMp01Oa8rNKMzOK0/P785PLcrM6MlMJk/Pr8hLZMpMp81ObEzOK8/v7+AAAABctglVXeaJJnKnqr575wLL9irRINYe8jm/kozyIBSCxKM9LMFQA4Ay6ERUnrZTiHDSHTcAIaFY4GEKnYXMqDU8HqGCikgdciQ22cDRp64iXAaiUECmBKVgQOERw7PGYqjmcsLj9LMAwQVGgIFxx1MQhqE1UVTRgnJSs1HV6NIhkLm4wpnwAOgJGUMgSXMYW4lIApaD2nkKynHZc/iwMahKe8GBRLGU9JkkFCDkcsAgGYkcpWJKrSJkDX4ikZArEo376+7/Cd5i32L5MsIQA7"/>';
html += '</td>';

html += '<td class="detailTableBodyCell" data-title="Date">';
Expand Down
23 changes: 19 additions & 4 deletions Emby.AutoOrganize/Configuration/autoorganizetv.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,35 @@
</table>
</div>
</div>

<br /><br />
<br />
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" id="chkAllowTBA" />
<span>Allow episodes titled 'TBA'</span>
</label>
<div class="fieldDescription checkboxFieldDescription">'TBA' is often set before the true name of an episode is known. Disabling this will prevent episodes being moved until a valid name is provided.</div>
</div>
<div class="selectContainer">
<select is="emby-select" id="copyOrMoveFile" label="Transfer method:">
<option value="true">Copy</option>
<option value="false">Move</option>
</select>
<div class="fieldDescription editorfieldDescription">Copy or move files from the watch folder</div>
</div>
<div>
<label class="checkboxContainer">
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" id="chkOverwriteExistingEpisodes" />
<span>Overwrite existing episodes</span>
</label>
<div class="fieldDescription checkboxFieldDescription">This option allows you to overwrite files matching the destination name</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" id="chkSingleEpisodeVersion" />
<span>Only keep single format of episode</span>
</label>
<div class="fieldDescription checkboxFieldDescription">Enabled - Sorting will enforce a single copy of an episode, removing any copies regardless of the file pattern set.</div>
<div class="fieldDescription checkboxFieldDescription">Disabled - Sorting will allow multiple copies of an episode, as long as the file pattern does not match.</div>
</div>
<div class="inputContainer">
<input is="emby-input" id="txtDeleteLeftOverFiles" type="text" label="Delete left over files" />
Expand Down
4 changes: 4 additions & 0 deletions Emby.AutoOrganize/Configuration/autoorganizetv.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@
var tvOptions = config.TvOptions;

view.querySelector('#chkEnableTvSorting').checked = tvOptions.IsEnabled;
view.querySelector('#chkAllowTBA').checked = tvOptions.AllowTBA;
view.querySelector('#chkOverwriteExistingEpisodes').checked = tvOptions.OverwriteExistingEpisodes;
view.querySelector('#chkSingleEpisodeVersion').checked = tvOptions.SingleEpisodeVersion;
view.querySelector('#chkDeleteEmptyFolders').checked = tvOptions.DeleteEmptyFolders;

view.querySelector('#txtMinFileSize').value = tvOptions.MinFileSizeMb;
Expand Down Expand Up @@ -170,7 +172,9 @@
var tvOptions = config.TvOptions;

tvOptions.IsEnabled = view.querySelector('#chkEnableTvSorting').checked;
tvOptions.AllowTBA = view.querySelector('#chkAllowTBA').checked;
tvOptions.OverwriteExistingEpisodes = view.querySelector('#chkOverwriteExistingEpisodes').checked;
tvOptions.SingleEpisodeVersion = view.querySelector('#chkSingleEpisodeVersion').checked;
tvOptions.DeleteEmptyFolders = view.querySelector('#chkDeleteEmptyFolders').checked;

tvOptions.MinFileSizeMb = view.querySelector('#txtMinFileSize').value;
Expand Down
Loading