fix: only MediaItemType has provider_mappings (#1976)
authorFabian Munkes <105975993+fmunkes@users.noreply.github.com>
Sun, 23 Feb 2025 10:37:34 +0000 (11:37 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Feb 2025 10:37:34 +0000 (11:37 +0100)
music_assistant/controllers/music.py

index c1af45907ef75b7ec096780d1fb690a89f256fb4..06cf31334b3d6f44554f89e4923d08fb871739d9 100644 (file)
@@ -822,7 +822,7 @@ class MusicController(CoreController):
     @api_command("music/mark_played")
     async def mark_item_played(
         self,
-        media_item: MediaItemTypeOrItemMapping,
+        media_item: MediaItemType,
         fully_played: bool = True,
         seconds_played: int | None = None,
     ) -> None:
@@ -891,7 +891,7 @@ class MusicController(CoreController):
     @api_command("music/mark_unplayed")
     async def mark_item_unplayed(
         self,
-        media_item: MediaItemTypeOrItemMapping,
+        media_item: MediaItemType,
     ) -> None:
         """Mark item as unplayed in playlog."""
         # update generic playlog table