diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 01851a0..95bd565 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -4,10 +4,6 @@ on: types: [opened, synchronize, reopened] branches: - 'development' - push: - branches: - - '**' - - '!development' jobs: test: runs-on: ubuntu-latest diff --git a/src/main/java/com/botdarr/api/sonarr/SonarrApi.java b/src/main/java/com/botdarr/api/sonarr/SonarrApi.java index 5e76c59..9949ae4 100644 --- a/src/main/java/com/botdarr/api/sonarr/SonarrApi.java +++ b/src/main/java/com/botdarr/api/sonarr/SonarrApi.java @@ -11,6 +11,7 @@ import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.util.Strings; import java.io.File; import java.io.IOException; @@ -248,7 +249,7 @@ private ShowDownloadResponse getDownloadBasedApiQueue(SonarrQueue showQueue) { statusMessages.add(sonarrQueueStatusMessages.getTitle()); } String overview = episode.getOverview(); - if (overview.length() > VALUE_MAX_LENGTH) { + if (!Strings.isEmpty(overview) && overview.length() > VALUE_MAX_LENGTH) { overview = overview.substring(0, VALUE_MAX_LENGTH); } return new ShowDownloadResponse(new SonarrDownloadActivity( diff --git a/src/main/resources/version.txt b/src/main/resources/version.txt index 3b73952..accefef 100644 --- a/src/main/resources/version.txt +++ b/src/main/resources/version.txt @@ -1 +1 @@ -5.6.9 \ No newline at end of file +5.6.10 \ No newline at end of file