mirror of
https://github.com/sudoxnym/fin-assistant.git
synced 2026-04-14 11:37:38 +00:00
Merge pull request #33 from DevelopmentalOctopus/patch-1
Handle ManualPlaylistsFolder
This commit is contained in:
commit
62db27d35b
3 changed files with 10 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
|||
## Changelog
|
||||
|
||||
### 1.1.2
|
||||
|
||||
- Handle `ManualPlaylistsFolder` type
|
||||
|
||||
### 1.1.1
|
||||
|
||||
- Fix `async_get_registry` warning
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"domain": "jellyfin",
|
||||
"name": "Jellyfin",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"config_flow": true,
|
||||
"documentation": "https://github.com/koying/jellyfin_ha",
|
||||
"issue_tracker": "https://github.com/koying/jellyfin_ha/issues",
|
||||
"requirements": ["jellyfin-apiclient-python==1.7.2"],
|
||||
"codeowners": ["@koying"],
|
||||
"iot_class": "local_push"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,6 +151,7 @@ def Type2Mediatype(type):
|
|||
"CollectionFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"Playlist": MEDIA_CLASS_DIRECTORY,
|
||||
"PlaylistsFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"ManualPlaylistsFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"MusicArtist": MEDIA_TYPE_ARTIST,
|
||||
"MusicAlbum": MEDIA_TYPE_ALBUM,
|
||||
}
|
||||
|
|
@ -169,6 +170,7 @@ def Type2Mimetype(type):
|
|||
"CollectionFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"Playlist": MEDIA_CLASS_DIRECTORY,
|
||||
"PlaylistsFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"ManualPlaylistsFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"MusicArtist": MEDIA_TYPE_ARTIST,
|
||||
"MusicAlbum": MEDIA_TYPE_ALBUM,
|
||||
}
|
||||
|
|
@ -186,6 +188,7 @@ def Type2Mediaclass(type):
|
|||
"CollectionFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"Playlist": MEDIA_CLASS_DIRECTORY,
|
||||
"PlaylistsFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"ManualPlaylistsFolder": MEDIA_CLASS_DIRECTORY,
|
||||
"MusicArtist": MEDIA_CLASS_ARTIST,
|
||||
"MusicAlbum": MEDIA_CLASS_ALBUM,
|
||||
"Audio": MEDIA_CLASS_TRACK,
|
||||
|
|
@ -204,6 +207,7 @@ def IsPlayable(type, canPlayList):
|
|||
"CollectionFolder": False,
|
||||
"Playlist": canPlayList,
|
||||
"PlaylistsFolder": False,
|
||||
"ManualPlaylistsFolder": False,
|
||||
"MusicArtist": canPlayList,
|
||||
"MusicAlbum": canPlayList,
|
||||
"Audio": True,
|
||||
|
|
|
|||
Loading…
Reference in a new issue