diff --git a/Emby.AutoOrganize/Configuration/autoorganizelog.js b/Emby.AutoOrganize/Configuration/autoorganizelog.js index 214c72e..aa0025e 100644 --- a/Emby.AutoOrganize/Configuration/autoorganizelog.js +++ b/Emby.AutoOrganize/Configuration/autoorganizelog.js @@ -193,11 +193,16 @@ return; } - var message = 'The following file will be moved from:' + '

' + item.OriginalPath + '

' + 'To:' + '

' + 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:' + '

' + item.OriginalPath + '

' + 'To:' + '

' + item.TargetPath; + if (item.DuplicatePaths.length > 0) { message += '

' + 'The following duplicates will be deleted:'; - message += '

' + item.DuplicatePaths.join('
'); } @@ -386,9 +391,9 @@ var html = ''; - html += ''; + html += ''; var hide = item.IsInProgress ? '' : ' hide'; - html += ''; + html += ' '; html += ''; html += ''; diff --git a/Emby.AutoOrganize/Configuration/autoorganizetv.html b/Emby.AutoOrganize/Configuration/autoorganizetv.html index 094a2e7..52a5711 100644 --- a/Emby.AutoOrganize/Configuration/autoorganizetv.html +++ b/Emby.AutoOrganize/Configuration/autoorganizetv.html @@ -180,8 +180,14 @@ - -

+
+
+ +
'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.
+
Copy or move files from the watch folder
-
-