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

This commit is contained in:
Jason Dove
2025-01-15 21:42:22 -06:00
committed by GitHub
parent 03d4ab8c72
commit eca62e8bec
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -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/).
## [Unreleased]
### Fixed
- Fix error message about synchronizing Plex collections from a Plex server that has zero collections
## [25.1.0] - 2025-01-10
### Added
@@ -348,6 +348,10 @@ public class PlexServerApiClient : IPlexServerApiClient
IPlexServerApi xmlService = XmlServiceFor(connection.Uri);
int size = await countItems(xmlService).Map(r => r.TotalSize);
if (size == 0)
{
yield break;
}
const int PAGE_SIZE = 10;