Skip to content

Commit 0a5f46b

Browse files
committed
Skip fallback duration as it does not make any sense
1 parent 807961b commit 0a5f46b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
"""All (global/common) constants for Music Assistant."""
22

3-
from typing import Final
4-
53
SECURE_STRING_SUBSTITUTE = "this_value_is_encrypted"
6-
7-
# if duration is None (e.g. radio stream) = 48 hours
8-
FALLBACK_DURATION: Final[int] = 172800

music_assistant_models/player_queue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from mashumaro import DataClassDictMixin
1010

11-
from .constants import FALLBACK_DURATION
1211
from .enums import PlayerState, RepeatMode
1312
from .media_items import MediaItemType
1413
from .queue_item import QueueItem
@@ -19,7 +18,7 @@ class PlayLogEntry:
1918
"""Representation of a PlayLogEntry within Music Assistant."""
2019

2120
queue_item_id: str
22-
duration: int = FALLBACK_DURATION
21+
duration: int | None = None
2322
seconds_streamed: float | None = None
2423

2524

0 commit comments

Comments
 (0)