fix error synchronizing collections from plex server that has zero collections (#1964)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user