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

Any Way Auto-Import Genre When Using Amazon ASIN?

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? 12 Years, 4 Months 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.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Any Way Auto-Import Genre When Using Amazon ASIN? 12 Years, 4 Months ago
Karma: 102  
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
»