mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 10:17:16 +02:00
Remove duration property
This commit is contained in:
parent
d90c3fc29c
commit
1fb80e81c4
2 changed files with 4 additions and 5 deletions
|
@ -113,8 +113,8 @@ public:
|
|||
boost::optional<int> volume;
|
||||
/// The current track position in seconds
|
||||
boost::optional<float> position;
|
||||
/// The current track duration in seconds
|
||||
boost::optional<float> duration;
|
||||
// /// The current track duration in seconds
|
||||
// boost::optional<float> duration;
|
||||
/// Whether the client can call the Next method on this interface and expect the current track to change
|
||||
boost::optional<bool> can_go_next;
|
||||
/// Whether the client can call the Previous method on this interface and expect the current track to change
|
||||
|
@ -138,7 +138,7 @@ public:
|
|||
addTag(j, "shuffle", shuffle);
|
||||
addTag(j, "volume", volume);
|
||||
addTag(j, "position", position);
|
||||
addTag(j, "duration", duration);
|
||||
// addTag(j, "duration", duration);
|
||||
addTag(j, "canGoNext", can_go_next);
|
||||
addTag(j, "canGoPrevious", can_go_previous);
|
||||
addTag(j, "canPlay", can_play);
|
||||
|
@ -182,7 +182,7 @@ public:
|
|||
readTag(j, "shuffle", shuffle);
|
||||
readTag(j, "volume", volume);
|
||||
readTag(j, "position", position);
|
||||
readTag(j, "duration", duration);
|
||||
// readTag(j, "duration", duration);
|
||||
readTag(j, "canGoNext", can_go_next);
|
||||
readTag(j, "canGoPrevious", can_go_previous);
|
||||
readTag(j, "canPlay", can_play);
|
||||
|
|
|
@ -548,7 +548,6 @@ class MPDWrapper(object):
|
|||
except (ValueError, TypeError):
|
||||
logger.warning(
|
||||
f"Can't cast value {value} to {tag_mapping[key][1]}")
|
||||
|
||||
logger.debug(f'snapcast meta: {snapmeta}')
|
||||
|
||||
# Hack for web radio:
|
||||
|
|
Loading…
Add table
Reference in a new issue