koying / jellyfin_ha

Jellyfin integration for Home Assistant
Apache License 2.0
105 stars 18 forks source link

FIX: add missing item type 'PlaylistsFolder' #3

Closed zachowj closed 3 years ago

zachowj commented 3 years ago

Only tested on Jellyfin Version: 10.7.5

When you have at least 1 playlist it creates a top-level folder for all playlists with a type of PlaylistsFolder.

The output of item dump for the playlist folder

{
  "Name": "Playlists",
  "ServerId": "f7df75e0e00d4ba887b85d79f0a4fd3c",
  "Id": "1071671e7bffa0532e930debee501d2e",
  "ChannelId": "None",
  "IsFolder": true,
  "Type": "PlaylistsFolder",
  "UserData": {
    "PlaybackPositionTicks": 0,
    "PlayCount": 0,
    "IsFavorite": false,
    "Played": false,
    "Key": "1071671e-7bff-a053-2e93-0debee501d2e"
  },
  "CollectionType": "playlists",
  "ImageTags": {},
  "BackdropImageTags": [],
  "ImageBlurHashes": {},
  "LocationType": "FileSystem"
}
koying commented 3 years ago

Thanks!