I am new to this module so forgive me if this is obvious.

Does this support fetching track listings for music albums? Looks like AWS API does offer this: https://forums.aws.amazon.com/message.jspa?messageID=209821#209821

If this is not already implemented, Who wants a stab at a patch? I would sponsor it ...

Comments

bdesai’s picture

Just add this below the code in amazon_store_details_panel.tpl.php

if($item->Tracks){
print '</ul><br /><h2 class="title block-title">Disc Information</h2><br /><ul>';
foreach($item->Tracks->Disc as $disk){
$i=1;
foreach($item->Tracks->Disc->Track as $trac){
print $i . '. ' . $trac . '<br />';
$i=$i+1;
}
}
print '</ul>';
}
?>

This Code is not tested for syntax errors or theming issues, use it at your own risk. You will need TRACKS response group mentioned in your request. To add tracks response group go to amazon_store_get_item_data function in amazon_store.module and add Tracks or Large in ResponseGroup array i.e $parameters['ResponseGroup'].

Tracks will only retrieve Tracks information, Large will get alot of other information which you might not need. To learn more about which response group retrieves what for an asin or itemid see the below link

http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/CHAP_Res...

This solution is for amazon store module but you could implement something similar!

willvincent’s picture

Status: Active » Closed (works as designed)