Browse Source

fix error synchronizing collections from plex server that has zero collections (#1964)

pull/1985/head
Jason Dove 7 months ago committed by GitHub
parent
commit
eca62e8bec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 4
      ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

2
CHANGELOG.md

@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased] ## [Unreleased]
### Fixed
- Fix error message about synchronizing Plex collections from a Plex server that has zero collections
## [25.1.0] - 2025-01-10 ## [25.1.0] - 2025-01-10
### Added ### Added

4
ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

@ -348,6 +348,10 @@ public class PlexServerApiClient : IPlexServerApiClient
IPlexServerApi xmlService = XmlServiceFor(connection.Uri); IPlexServerApi xmlService = XmlServiceFor(connection.Uri);
int size = await countItems(xmlService).Map(r => r.TotalSize); int size = await countItems(xmlService).Map(r => r.TotalSize);
if (size == 0)
{
yield break;
}
const int PAGE_SIZE = 10; const int PAGE_SIZE = 10;

Loading…
Cancel
Save