diff --git a/music_assistant_models/constants.py b/music_assistant_models/constants.py index 107ecaf..e4e91eb 100644 --- a/music_assistant_models/constants.py +++ b/music_assistant_models/constants.py @@ -1,8 +1,3 @@ """All (global/common) constants for Music Assistant.""" -from typing import Final - SECURE_STRING_SUBSTITUTE = "this_value_is_encrypted" - -# if duration is None (e.g. radio stream) = 48 hours -FALLBACK_DURATION: Final[int] = 172800 diff --git a/music_assistant_models/player_queue.py b/music_assistant_models/player_queue.py index b5faa50..96556f4 100644 --- a/music_assistant_models/player_queue.py +++ b/music_assistant_models/player_queue.py @@ -8,7 +8,6 @@ from mashumaro import DataClassDictMixin -from .constants import FALLBACK_DURATION from .enums import PlayerState, RepeatMode from .media_items import MediaItemType from .queue_item import QueueItem @@ -19,7 +18,7 @@ class PlayLogEntry: """Representation of a PlayLogEntry within Music Assistant.""" queue_item_id: str - duration: int = FALLBACK_DURATION + duration: int | None = None seconds_streamed: float | None = None