OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Any Way Auto-Import Genre When Using Amazon ASIN? (0 viewing) 
BookLibary Component Support
Go to bottom Favoured: 0
TOPIC: Any Way Auto-Import Genre When Using Amazon ASIN?
#5129
isochronal (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Any Way Auto-Import Genre When Using Amazon ASIN? 4 Years, 1 Month ago Karma: 0  
How can I set the component to auto-import the "genres" field when using the Amazon Web Service to import the details for a song?

Also, when using ASIN codes for single MP3 downloads, the artist name is not being pulled in (for example, using ASIN B005I0BS12). Any way I can fix that?

Thank you!
 
Logged Logged  
  The administrator has disabled public write access.
#5136
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Any Way Auto-Import Genre When Using Amazon ASIN? 4 Years, 1 Month ago Karma: 61  
Hello,

for correct take artist in MediaLibrary for Mp3 - you will need in file:
{ytours site}/administrator/components/com_medialibrary

find all rows/admin.medialibrary.class.ws.php

Code:

    $music->artist = (string)$result->Items->Item->ItemAttributes->Artist;



and replace them to
Code:


    $music->artist = (string)$result->Items->Item->ItemAttributes->Artist;
    if(!$music->artist) $music->artist = (string)$result->Items->Item->ItemAttributes->Creator;



For "genres" sorry all not so simply, for add this field - will need extend class for Music and rebuild ourput.
You may do that self. MediaLibrary - open source component - or order custom version with help OrdaSoft support form.

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?