Hi Paul - I've included a patch proposal that changes the startoffset
instead of reducing the duration of a song when startTime is known. I
sounds to me more logical to start were the track is and ... it help a
lot my bridges which are confused otherwise :)
Code:
--------------------
--- Plugin.pm.original 2019-04-19 22:59:31.886298200 -0700
+++ Plugin.pm 2019-04-19 23:00:51.000000000 -0700
@@ -1661,13 +1661,11 @@
$song->pluginData( wmaMeta => $info );
if (!$prefs->get('hidetrackduration')){
+ my $startOffset;
# Pushing duration and startOffset makes the
duration and playing position display
if (defined $info->{duration}){
$song->duration( $info->{duration} );
- if (defined $info->{startTime}){
- # We know when it was scheduled
and what time it is now ... so use the difference to modify the duration
- $song->duration(
$info->{duration}+$info->{startTime}-$hiResTime );
- };
+ $startOffset =
$info->{startTime}-$hiResTime if defined $info->{startTime};
};
# However, might need some adjusting to allow
for joining song in the middle and stream delays
@@ -1679,7 +1677,7 @@
# }
# }
- $song->startOffset(
-$client->songElapsedSeconds );
+ $song->startOffset(
-$startOffset-$client->songElapsedSeconds );
} else {
# Do not show duration so remove it in case old
data there from song before this was disabled
$song->duration( 0 );
@@ -1769,4 +1767,4 @@
1;
-__END__
\ No newline at end of file
+__END__
--------------------
LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi
B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010,
AppleTV 4, Airport Express, GGMM E5
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=106900
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins