Skip to content
sahib edited this page Feb 14, 2012 · 2 revisions

Data description returned by glyr_get()

Each GLYR_GET-type returns different data.
This is actually a description of the GlyrMemCache→data field.
  1. GLYR_GET_COVERART
    Raw image data, the image format can be found in GlyrMemCache→img_format.
  2. GLYR_GET_LYRICS
    Text, no special rules. When glyr_opt_force_utf8() is set, valid UTF8.
  3. GLYR_GET_ARTIST_PHOTOS
    Raw image data, the image format can be found in GlyrMemCache→img_format.
  4. GLYR_GET_ARTISTBIO
    Text, no special rules. When glyr_opt_force_utf8() is set, valid UTF8.
  5. GLYR_GET_SIMILIAR_ARTISTS
    Newline seperated list, where:
    1. A similar artist’s name.
    2. Similarity form [0.0..1.0]
    3. Link to the last.fm page
    4. Several links to artistphotos of this artist, where the largest is at last.
  6. GLYR_GET_SIMILIAR_SONGS
    Newline seperated list, where:
    1. A similar song’s name.
    2. Similarity form [0.0..1.0]
    3. Link to the last.fm page
  7. GLYR_GET_ALBUM_REVIEW
    Text, no special rules. When glyr_opt_force_utf8() is set, valid UTF8.
  8. GLYR_GET_TRACKLIST
    The tracktitle, UTF8. One title for each cache in the list. Duration is in GlyrMemCache→duration
  9. GLYR_GET_TAGS
    Text, no special rules. When glyr_opt_force_utf8() is set, valid UTF8.
  10. GLYR_GET_RELATIONS
    Text, no special rules. When glyr_opt_force_utf8() is set, valid UTF8.
  11. GLYR_GET_ALBUMLIST
    Albumtitle, UTF8. One title for each cache.
  12. GLYR_GET_BACKDROPS
    Fetches a background image for a certain artist.