From 139460d19cad6ddc5b2540b6780a10f1f6259456 Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Fri, 31 Mar 2023 07:05:54 -0400 Subject: [PATCH] OPDS formatting fix (#1905) # Fixed - Fixed a formatting issue where there was a unnecessary - at the beginning of titles. (develop) # Changed - Updated github action version. (develop) --- .github/workflows/sonar-scan.yml | 2 +- API/Controllers/OPDSController.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml index fbfa41d9a..ad33f1c28 100644 --- a/.github/workflows/sonar-scan.yml +++ b/.github/workflows/sonar-scan.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check PR Body - uses: JJ/github-pr-contains-action@releases/v9 + uses: JJ/github-pr-contains-action@releases/v10 with: github-token: ${{ secrets.GITHUB_TOKEN }} bodyDoesNotContain: "[\"|`]" diff --git a/API/Controllers/OPDSController.cs b/API/Controllers/OPDSController.cs index 1564a26a0..7a48ab460 100644 --- a/API/Controllers/OPDSController.cs +++ b/API/Controllers/OPDSController.cs @@ -777,11 +777,11 @@ public class OpdsController : BaseApiController } else if (volume.Number != 0) { - title = $" - {series.Name} - Volume {volume.Name} - {SeriesService.FormatChapterTitle(chapter, libraryType)}"; + title = $"{series.Name} - Volume {volume.Name} - {SeriesService.FormatChapterTitle(chapter, libraryType)}"; } else { - title = $" - {series.Name} - {SeriesService.FormatChapterTitle(chapter, libraryType)}"; + title = $"{series.Name} - {SeriesService.FormatChapterTitle(chapter, libraryType)}"; } // Chunky requires a file at the end. Our API ignores this