Changeset 139
- Timestamp:
- 2013-12-30 14:07:28 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/I_Sonos1.xml ¶
r137 r139 336 336 for item2 in item:gmatch("(<"..subtag.."%s.-/>)") do 337 337 zoneName = item2:match("<"..subtag..'%s?.-%sZoneName="([^"]+)".-/>') 338 -- TODO fix for pairs 338 339 if (zoneName == name) then 339 340 result = item2:match("<"..subtag..'%s?.-%sUUID="([^"]+)".-/>') … … 462 463 serviceCmd, serviceId = transportUri:match("x%-sonosapi%-radio:([^%?]+%?sid=(%d+).*)") 463 464 end 465 if (serviceCmd == nil) then 466 serviceCmd, serviceId = transportUri:match("x%-sonosapi%-hls:([^%?]+%?sid=(%d+).*)") 467 end 464 468 if (serviceCmd == nil and trackUri ~= nil) then 465 469 serviceCmd, serviceId = trackUri:match("x%-sonosprog%-http:([^%?]+%?sid=(%d+).*)") … … 598 602 for item2 in item:gmatch("(<"..subtag.."%s.-/>)") do 599 603 id = item2:match("<"..subtag..'%s?.-%sUUID="([^"]+)".-/>') 604 -- TODO fix for pairs 600 605 if (id ~= nil) then 601 606 if (members ~= "") then … … 1027 1032 uri = getValueFromXML(dataTable[localUUID].FavoritesRadios, "item", "dc:title", station, "res") 1028 1033 elseif (uri:sub(1, 3) == "TR:") then 1029 serviceId = getSonosServiceId("TuneIn") 1034 serviceId = getSonosServiceId("TuneIn") or "254" 1030 1035 uri = "x-sonosapi-stream:s" .. uri:sub(4) .. "?sid=" .. serviceId .. "&flags=32" 1031 1036 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 .. "&flags=288" 1041 log("Sirius URI: " .. uri) 1032 1042 elseif (uri:sub(1, 3) == "GZ:") then 1033 1043 controlByGroup = false … … 1050 1060 .. '</item></DIDL-Lite>' 1051 1061 else 1062 log("Service name for serviceId: " .. serviceId .. ": " .. service) 1052 1063 uriMetaData = '<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/">' 1053 1064 .. '<item><dc:title>' .. station .. '</dc:title>' -
TabularUnified trunk/J_Sonos1.js ¶
r138 r139 172 172 html += '<option value="FR">Favorite radio</option>'; 173 173 html += '<option value="TR">TuneIn radio</option>'; 174 html += '<option value="SR">Sirius radio</option>'; 174 175 html += '<option value="GZ">Group zone</option>'; 175 176 html += '</select>'; … … 314 315 html += '<td>x-sonosapi-stream:s50486?sid=254&flags=32 **</td>'; 315 316 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>'; 316 323 html += '</tr>'; 317 324
Note: See TracChangeset
for help on using the changeset viewer.