mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(plex): do not fail to scan empty libraries (#1771)
* fix(plex): do not fail to scan empty libraries * fix(plex): ensure getLibraryContents returns array
This commit is contained in:
@@ -142,7 +142,7 @@ class PlexAPI {
|
||||
`/library/sections/${id}/all`
|
||||
);
|
||||
|
||||
return response.MediaContainer.Metadata;
|
||||
return response.MediaContainer.Metadata ?? [];
|
||||
}
|
||||
|
||||
public async getMetadata(
|
||||
|
Reference in New Issue
Block a user