Skip to content

Commit

Permalink
1.4.4 <=> Disabled verbose XML error output
Browse files Browse the repository at this point in the history
  • Loading branch information
mynttt committed Sep 9, 2020
1 parent f5f344e commit c0fc195
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.4.4
- Disabled XML error logging for non existing metadata XML files as these errors are not important. To re-enable these errors set the capability flag VERBOSE_XML_ERROR_LOG.

## 1.4.3b
- Hotfix for previously unfaced NPE. Added mitigation + logging to futher debug if it happens again with that user.

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ Flag | Description
:-------------------------:|:-------------------------:|
NO_TV |Ignore all TV Show libraries
NO_MOVIE | Ignore all Movie libraries
VERBOSE_XML_ERROR_LOG | Enable verbose XML error output logging

Multiple flags can be supplied as a semicolon separated string.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.3b
1.4.4
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'com.github.spotbugs' version '2.0.1'
}

version = '1.4.3b'
version = '1.4.4'
sourceCompatibility = '11'

new File(projectDir, "VERSION").text = version;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/updatetool/common/Capabilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.List;

public enum Capabilities {
TMDB, TVDB, NO_TV, NO_MOVIE;
TMDB, TVDB, NO_TV, NO_MOVIE, VERBOSE_XML_ERROR_LOG;

private static List<Capabilities> USER_FLAGS = List.of(NO_MOVIE, NO_TV);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/updatetool/imdb/ImdbPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void updateXML(ImdbJob job) throws Exception {
}
for(var c : cleanup)
job.items.removeAll(c);
if(nofile.size()>0) {
if(nofile.size() > 0 && configuration.capabilities.contains(Capabilities.VERBOSE_XML_ERROR_LOG)) {
String errorFile = "xml-error-" + job.uuid + "-" + job.library + ".log";
Logger.warn(nofile.size() + " XML file(s) have failed to be updated due to them not being present on the file system.");
Logger.warn("This is not an issue as they're not important for Plex as it reads the ratings from the database.");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.3b
1.4.4

0 comments on commit c0fc195

Please sign in to comment.