Changeset 139


Ignore:
Timestamp:
2013-12-30 14:07:28 (11 years ago)
Author:
lolodomo
Message:

New: playback of a Sirius station with the following URI format in PlayURI command: SR:<stationID>

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/I_Sonos1.xml

    r137 r139  
    336336          for item2 in item:gmatch("(&lt;"..subtag.."%s.-/>)") do 
    337337              zoneName = item2:match("&lt;"..subtag..'%s?.-%sZoneName="([^"]+)".-/>') 
     338-- TODO fix for pairs 
    338339              if (zoneName == name) then 
    339340                  result = item2:match("&lt;"..subtag..'%s?.-%sUUID="([^"]+)".-/>') 
     
    462463            serviceCmd, serviceId = transportUri:match("x%-sonosapi%-radio:([^%?]+%?sid=(%d+).*)") 
    463464        end 
     465        if (serviceCmd == nil) then 
     466            serviceCmd, serviceId = transportUri:match("x%-sonosapi%-hls:([^%?]+%?sid=(%d+).*)") 
     467        end 
    464468        if (serviceCmd == nil and trackUri ~= nil) then 
    465469            serviceCmd, serviceId = trackUri:match("x%-sonosprog%-http:([^%?]+%?sid=(%d+).*)") 
     
    598602          for item2 in item:gmatch("(&lt;"..subtag.."%s.-/>)") do 
    599603              id = item2:match("&lt;"..subtag..'%s?.-%sUUID="([^"]+)".-/>') 
     604-- TODO fix for pairs 
    600605              if (id ~= nil) then 
    601606                  if (members ~= "") then 
     
    10271032        uri = getValueFromXML(dataTable[localUUID].FavoritesRadios, "item", "dc:title", station, "res") 
    10281033    elseif (uri:sub(1, 3) == "TR:") then 
    1029         serviceId = getSonosServiceId("TuneIn") 
     1034        serviceId = getSonosServiceId("TuneIn") or "254" 
    10301035        uri = "x-sonosapi-stream:s" .. uri:sub(4) .. "?sid=" .. serviceId .. "&amp;flags=32" 
    10311036        station = "xxx" 
     1037    elseif (uri:sub(1, 3) == "SR:") then 
     1038        station = uri:sub(4) 
     1039        serviceId = getSonosServiceId("Sirius") or "37" 
     1040        uri = "x-sonosapi-hls:r%3a" .. station .. "?sid=" .. serviceId .. "&amp;flags=288" 
     1041log("Sirius URI: " .. uri) 
    10321042    elseif (uri:sub(1, 3) == "GZ:") then 
    10331043        controlByGroup = false 
     
    10501060                              .. '&lt;/item>&lt;/DIDL-Lite>' 
    10511061            else 
     1062log("Service name for serviceId: " .. serviceId .. ": " .. service) 
    10521063                uriMetaData = '&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">' 
    10531064                              .. '&lt;item>&lt;dc:title>' .. station .. '&lt;/dc:title>' 
  • TabularUnified trunk/J_Sonos1.js

    r138 r139  
    172172    html += '<option value="FR">Favorite radio</option>'; 
    173173    html += '<option value="TR">TuneIn radio</option>'; 
     174    html += '<option value="SR">Sirius radio</option>'; 
    174175    html += '<option value="GZ">Group zone</option>'; 
    175176    html += '</select>'; 
     
    314315    html += '<td>x-sonosapi-stream:s50486?sid=254&flags=32 **</td>'; 
    315316    html += '<td>TR:50486</td>'; 
     317    html += '</tr>'; 
     318 
     319    html += '<tr>'; 
     320    html += '<td>Sirius radio with sid shade45</td>'; 
     321    html += '<td>x-sonosapi-hls:r%3ashade45?sid=37&flags=288 **</td>'; 
     322    html += '<td>SR:shade45</td>'; 
    316323    html += '</tr>'; 
    317324 
Note: See TracChangeset for help on using the changeset viewer.