×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    3

    Question GetTopProductsForGenre[Async] returning products with incorrect genre

    I'm trying to get a list of the top songs for a given (user-selectable) genre. The code is pretty straight forward:

    Code:
    var response = await client.GetTopProductsForGenreAsync(_genre.Id, Category.Track, itemsPerPage:20);
    This is returning a list of 16 Products but only two of which have a genre that matches the requested genre. In this particular case the requested genre was "Rock", but I got a list with 2 Rock tracks, 4 Pop tracks, 1 Dance track, and 9 Indie/Alternative tracks. That seems wrong. And I checked the list, every product only has 1 genre.

    Should I be using something else?

    This is on Windows Phone 8 with the 2.0 API (installed via NuGet).

    Thanks,
    -Steve

  2. #2
    Registered User
    Join Date
    Jan 2013
    Location
    Timisoara, Romania
    Posts
    14

    Re: GetTopProductsForGenre[Async] returning products with incorrect genre

    Hi Zikifer,

    You should take a look into the MusicExplorer sample: https://projects.developer.nokia.com...rer_v1_0_1.zip
    It has a class: MusicApi.cs where you can find the method: public void GetTopArtistsForGenre(string id).
    This is what you need, but you also have to do something like in MainPage.xaml.cs at void OnGenresSelectionChanged(Object sender, SelectionChangedEventArgs e) or another way to select the genre(id) and to call the GetTopArtistsForGenre(id).

    I hope this is what you're looking for

  3. #3
    Registered User
    Join Date
    Apr 2013
    Posts
    3

    Re: GetTopProductsForGenre[Async] returning products with incorrect genre

    Yeah, MusicClient.GetTopArtistsForGenreAsync() worked much better. Thanks!

  4. #4
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    73

    Re: GetTopProductsForGenre[Async] returning products with incorrect genre

    Which country are you using the API for? We have some editorial choices used in this method, so wanted to check what you're looking at.
    Steve

  5. #5
    Registered User
    Join Date
    Apr 2013
    Posts
    3

    Re: GetTopProductsForGenre[Async] returning products with incorrect genre

    Quote Originally Posted by mmehnsr View Post
    Which country are you using the API for? We have some editorial choices used in this method, so wanted to check what you're looking at.
    Steve
    I'm in the US.

  6. #6
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    73

    Re: GetTopProductsForGenre[Async] returning products with incorrect genre

    thanks, I'll follow up internally and get back to you...
    Steve

  7. #7
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    73

    Re: GetTopProductsForGenre[Async] returning products with incorrect genre

    Hi, we had a problem with the selection being published that we've resolved now.
    Regards,
    Steve

Similar Threads

  1. Media Geo vs Media Genre
    By code177 in forum [Closed] Publishing to Nokia Store
    Replies: 1
    Last Post: 2009-11-23, 15:01
  2. Which Nokia products support OMA DRM?
    By mrashadkhan in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2006-03-21, 18:48
  3. Number Control reacts to NaviKey in incorrect way (incorrect for me)
    By doctordwarf in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-02-04, 11:59
  4. Where can I get CORBA products?
    By Nokia_FAQ in forum Nokia M2M
    Replies: 1
    Last Post: 2002-05-14, 13:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×