~stolowski/unity-lens-music/fix-hint

« back to all changes in this revision

Viewing changes to src/musicstore-collection.vala

  • Committer: Tarmac
  • Author(s): Alejandro J. Cura
  • Date: 2013-03-22 07:38:22 UTC
  • mfrom: (140.1.6 musicstore-purchase)
  • Revision ID: tarmac-20130322073822-0m2w3sx5eydsdjf8
- Use payment preview for music purchases (LP: #1154176). Fixes: https://bugs.launchpad.net/bugs/1154176.

Approved by Didier Roche, PS Jenkins bot, Michal Hruby.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
              track.duration = (int)root_obj.get_member ("duration").get_int ();
105
105
              tracks.append (track);
106
106
            }
 
107
 
 
108
            if (root_obj.has_member ("id"))
 
109
            {
 
110
                album.purchase_sku = root_obj.get_string_member ("id");
 
111
            }
 
112
            else
 
113
            {
 
114
                // U1MS does not allow purchases of an album with no purchase_sku
 
115
                album.purchase_sku = "";
 
116
                warning ("Json has no purchase_sku in '%s'", details_uri);
 
117
            }
 
118
 
107
119
          }
108
120
          else
109
121
          {