Genre from tags hack???

Tips and tricks to get more out of kPlaylist

Genre from tags hack???

Postby lsdeep » Tue Feb 15, 2011 4:32 am

do we have anybody here, with enough knowledge of php & mysql to write a little hack, which will allow genres to be read from the tags and automatically added to the database???
you know, instead of creating endless custom genres in the php.ini to be used...
basically just as it detects artist, album, title etc....
so that, when you run an update, it automatically adds new genres and shows them in the genre search as well!

it would make live so much easier, since most ppl have custom / multi genre entries and it is a pain in the butt to add every single one into the script...

any help, solutions.... would be great!!!!!

greets, lsdeep
lsdeep
 
Posts: 28
Joined: Sat May 09, 2009 4:57 am
Location: Tonga

Re: Genre from tags hack???

Postby lsdeep » Fri Feb 18, 2011 12:06 am

oh, come on!!!! is there really nobody (we have soooo many hack's for all kind of bullsh*t) able to write up this little improvement?!
lsdeep
 
Posts: 28
Joined: Sat May 09, 2009 4:57 am
Location: Tonga

Re: Genre from tags hack???

Postby aba » Fri Feb 18, 2011 1:35 pm

lsdeep wrote:oh, come on!!!! is there really nobody (we have soooo many hack's for all kind of bullsh*t) able to write up this little improvement?!


It's in the works...
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Re: Genre from tags hack???

Postby aba » Sat Feb 19, 2011 4:18 pm

lsdeep wrote:oh, come on!!!! is there really nobody (we have soooo many hack's for all kind of bullsh*t) able to write up this little improvement?!


Get build 508. It will do this if you run a full update (with id3 rebuild option enabled.)
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Re: Genre from tags hack???

Postby lsdeep » Tue Mar 01, 2011 11:42 pm

hi aba,

first of all, thx latest addition of "automatic genres".

anyway, i d/l 508, did the full upgrade with id3 rewrite (takes about 10 hrs this days, compared to "normal" update 20min), but it didn't really do the trick.
anyway, i noticed after the whole procedure, in mysql is no new table created (should it be like that?), if there should be a new table, maybe you can just send me a "image", snapshot etc.... of the (my guess here) tbl_genre structure for mysql, i rather type that in and create the table, instead of getting rid of all my old tables (and settings that way).
so far, after installing 508 and running a complete update with id3 enabled i get (from my view) very strange results. many genres are recognized, others not at all. example: it finds 'Alternative Rock' but not 'Alt. Rock', yes to 'Pop/Funk' but no
'Doom/ Stoner'..... etc. ...
other simple ones like 'world', 'americana' etc. same prob.
right now, my explanation for it is, the mysql table is missing (plz correct me if i am wrong)

greetz lsdeep
lsdeep
 
Posts: 28
Joined: Sat May 09, 2009 4:57 am
Location: Tonga

Re: Genre from tags hack???

Postby aba » Wed Mar 02, 2011 1:31 pm

lsdeep wrote:anyway, i d/l 508, did the full upgrade with id3 rewrite (takes about 10 hrs this days, compared to "normal" update 20min), but it didn't really do the trick.
anyway, i noticed after the whole procedure, in mysql is no new table created (should it be like that?), if there should be a new table, maybe you can just send me a "image", snapshot etc.... of the (my guess here) tbl_genre structure for mysql, i rather type that in and create the table, instead of getting rid of all my old tables (and settings that way).
so far, after installing 508 and running a complete update with id3 enabled i get (from my view) very strange results. many genres are recognized, others not at all. example: it finds 'Alternative Rock' but not 'Alt. Rock', yes to 'Pop/Funk' but no
'Doom/ Stoner'..... etc. ...
other simple ones like 'world', 'americana' etc. same prob.
right now, my explanation for it is, the mysql table is missing (plz correct me if i am wrong)


Yes, there should be a new table (tbl_genre.) Did you download the complete file? (Not the customized version.)

kP has a automatic upgrade function, it will not delete anything, just add missing tables or columns to the existing database.

But, you could of couse construct the database yourself, even though, you could do that even doing the upgrade. (The SQL will
be listed.)

Aage
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Re: Genre from tags hack???

Postby lsdeep » Thu Mar 03, 2011 11:45 pm

hi aba,

well, i guess it was my mistake! i d/l the custom version + i had the upgrade part disabled (and completely forgotten about it). with "normal" version and upgrade the table was installed np! great news!
now i just run a normal update to get the latest 100+ albums added and later (overnight the "full" one with id3 rebuild - that one just takes forever :( ).
anyway, i would think it should solve the prob. if not, you will hear from me :)
i send you also a PM, check it out, contains some info for access to the server, to get an idea how it is running with so many files.

thx again m8, you rock!!!
lsdeep
lsdeep
 
Posts: 28
Joined: Sat May 09, 2009 4:57 am
Location: Tonga

Re: Genre from tags hack???

Postby lsdeep » Fri Mar 04, 2011 12:25 am

yep, after small partial update - now it works 8O :lol:
thx again so much - you have no idea how much easier you just made my (music server) life!!!!

greetz, lsdeep
lsdeep
 
Posts: 28
Joined: Sat May 09, 2009 4:57 am
Location: Tonga

Re: Genre from tags hack???

Postby lsdeep » Fri Mar 04, 2011 10:45 pm

after the painful full update - it still works :)
so once again ("fütter mein ego....") - you are my star!!!!!!

greetz,lsdeep
lsdeep
 
Posts: 28
Joined: Sat May 09, 2009 4:57 am
Location: Tonga

Re: Genre from tags hack???

Postby lsdeep » Fri Aug 19, 2011 11:30 pm

thx - this 'issue' is solved thx to aba

l
lsdeep
 
Posts: 28
Joined: Sat May 09, 2009 4:57 am
Location: Tonga


Return to Tips and tricks



cron