Page 1 of 1

Library

Posted: Wed Nov 24, 2010 4:40 pm
by atagal
Would be great to split genre by ";" or "," or any delimiter.

now i have multi-genre:

Image

Re: Library

Posted: Wed Nov 24, 2010 4:44 pm
by atagal
also, there a lot players/libraries (foobar, songbird etc) use lastfm api to grab artist info/album info.

http://www.hydrogenaudio.org/forums/ind ... opic=70955

it would be great to have it in TGF!

Re: Library

Posted: Wed Nov 24, 2010 5:33 pm
by antonellocaroli
lastfm information are often taken from wikepedia ... are not very reliable ... I think it is better AMG!

Re: Library

Posted: Wed Nov 24, 2010 5:39 pm
by atagal
maybe and better but AMG dont have API to grab info on fly.

Re: Library

Posted: Thu Nov 25, 2010 9:40 am
by jtclipper
I was not aware of the last.fm service when i have free time i'll poke on their site and have a look.

Re: Library

Posted: Thu Nov 25, 2010 2:39 pm
by atagal
API if free http://www.last.fm/api but need lastfm account to get api key.

Code: Select all

http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=ARTIST&api_key=APIKEY
http://www.last.fm/api/show?service=267

--

Can i request to split Artist with delimiter at import?

for example Artist1 & Artist2 & Artist 3 to add all 3 artists to database instead 1 (similar to genre split above).
Not always 1st artist is main artist in album.

Re: Library

Posted: Fri Nov 26, 2010 8:14 am
by jtclipper
The database design is such that the Albums table has only one link to the Artist table.
Moreover the tracks table has one artist and one album ID in it with the relevant relationship and index keys.

So multiple artists would break the entire database model as of now and will need a major update in the logic of the code as well.

Re: Library

Posted: Fri Nov 26, 2010 9:48 am
by atagal
hm, how about just duplicate album table with different artist name without any relations?
database size will increase, but maybe can add an option to disable duplication if users dont want it.
whatever if there are unique keys, like path to files, it is impossible.