Skip to content

Commit

Permalink
Skip fallback duration as it does not make any sense
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jan 5, 2025
1 parent 807961b commit 0a5f46b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions music_assistant_models/constants.py
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions music_assistant_models/player_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down

0 comments on commit 0a5f46b

Please sign in to comment.