File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -925,15 +925,15 @@ module.exports = function (RED) {
925925 const groupData = await getGroupCurrent ( tsPlayer , validated . playerName )
926926 const tsCoordinator = new SonosDevice ( groupData . members [ 0 ] . urlObject . hostname )
927927
928+ // changed according to issue #281
929+ // At end of a queue, non repeat mode: ignore the Next
928930 try {
929931 await tsCoordinator . AVTransportService . Next ( { InstanceID : 0 } )
930932 } catch ( error ) {
931933 if ( error . UpnpErrorCode === 711 ) {
932- await tsCoordinator . AVTransportService . Seek ( {
933- InstanceID : 0 ,
934- Target : '00:00:01' ,
935- Unit : 'REL_TIME' ,
936- } )
934+
935+ // ignore this
936+
937937 } else if ( error . UpnpErrorCode === 701 ) {
938938 throw new Error (
939939 `${ PACKAGE_PREFIX } most likely stream (station) does not support next`
@@ -1651,6 +1651,8 @@ module.exports = function (RED) {
16511651 const groupData = await getGroupCurrent ( tsPlayer , validated . playerName )
16521652 const tsCoordinator = new SonosDevice ( groupData . members [ 0 ] . urlObject . hostname )
16531653
1654+ // changed according to issue #281
1655+ // At begin of a queue, non repeat mode: repeat the current song
16541656 try {
16551657 await tsCoordinator . AVTransportService . Previous ( { InstanceID : 0 } )
16561658 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments