Changeset 140


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

Sirius radio: title and artist extracted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/I_Sonos1.xml ΒΆ

    r139 r140  
    280280              artist = upnp.decode(didlTable["r:albumArtist"] or didlTable["dc:creator"] or artist) 
    281281              album = upnp.decode(didlTable["upnp:album"] or album) 
     282              if (didlTable["dc:title"] == nil 
     283                      and didlTable["r:albumArtist"] == nil 
     284                      and didlTable["r:streamContent"] ~= nil) then 
     285                  local title2, artist2 = didlTable["r:streamContent"]:match(".*|TITLE ([^|]*)|ARTIST ([^|]*)") 
     286                  title = upnp.decode(title2 or title) 
     287                  artist = upnp.decode(artist2 or artist) 
     288              end 
    282289              if (didlTable["upnp:albumArtURI"] ~= nil) then 
    283290                  albumArt = upnp.decode(didlTable["upnp:albumArtURI"]) 
Note: See TracChangeset for help on using the changeset viewer.