xMusic - some extra music stuff

Xlobby plugin development

Re: xMusic - some extra music stuff

Postby S Pittaway on Wed Apr 02, 2008 11:59 am

Nope, you are right the"old" version does not seam to pick up the play status from winamp correctly.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: xMusic - some extra music stuff

Postby S Pittaway on Wed Apr 02, 2008 11:59 am

Updated to my current version...

It now uses an ini file, but its pretty straight forward. I have tried to keep everything working between this and the old versions but i havent used them for a while so i cant be sure...

Please create a copy of your database before updating.

Some of the tag names have changed (i made them more neutral, and share them with xDatabase), here are the new tag names

"played" = "xdb.played"
"last.played" = "xdb.last.played.sort"
"last.played.str" = "xdb.last.played"
"played.count" = "xdb.played.count"
"album.added" = "xdb.date.added"
"track.added" = "xdb.date.added"
"album.added.sort" = "xdb.date.added.sort"
"track.added.sort" = "xdb.date.added.sort"
"shuffle.pos" = "xdb.random"
"stars" = "xdb.rating"

If you trigger a "database.add extra fields" event it SHOULD convert the old tags and values into the new format.

Let me kn ow if you notice anything funny.


Sean.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: xMusic - some extra music stuff

Postby scottw on Wed Apr 02, 2008 12:06 pm

Thanks for getting this out so fast!!!!

I will try it out in a bit.


Thanks again.
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby scottw on Wed Apr 02, 2008 2:24 pm

Sean,

Not sure if this is an oversight but you said

3 Apr 2008 - Added more data to xmusic.dummy.xml.


This file is not included in the zip, should it be???

I have the old one which works but was just checking.
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby S Pittaway on Wed Apr 02, 2008 3:52 pm

yep it was missing, added it in.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: xMusic - some extra music stuff

Postby scottw on Thu Apr 03, 2008 1:31 am

Sean,

I have a question. With the last version of xMusic you had a tag of "track.added.sort" on the track level of the DB which is what I ran xToppicks against to give me a track listing of the last added tracks. With this version the name was changed to "xdb.date.added.sort" and is applied to the artist/album level and track level. My music is in the DB as:
Artist
--Track1
--Track2

No albums.

I would like to delete the "xdb.date.added.sort" on just the Artist/Album level because it causes xToppicks to show the artist and the track in it's DB where I just want the track.

Now I am not asking you to change xMusic...unless you want :lol: ...but is there a way to just delete a tag from the Artist/Album level, maybe with xDatabase??? I tried Database Strip Tags but that deleted it from the Artist/Album and the Track level

Any ideas???
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby S Pittaway on Thu Apr 03, 2008 7:51 am

it was a very easy change so here you go...

Updated,

3 Apr 2008 - added i dont use this note :)
3 Apr 2008 - added use xDatabase note :)
3 Apr 2008 - added ini file option to use the the file creation date - Get Date Added From File = true/false,
3 Apr 2008 - added ini file option to add item specific xdb.date.added - Add Date Added For "type" = true/false
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: xMusic - some extra music stuff

Postby scottw on Thu Apr 03, 2008 1:18 pm

Wow....I don't know what to say......THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS!!!!!!

It works great. :D

3 Apr 2008 - added i dont use this note :)
3 Apr 2008 - added use xDatabase note :)


:lol: I only use xMusic for the play times and the date added and plan to use xDatabase for everything else, I just saw that you added the "type" for xDatabase also so I will only use xMusic for the automatic play counts as xDatabase does everything else 8)

Again I can't thank you enough!!!!!
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby scottw on Thu Apr 03, 2008 2:20 pm

Sean,

Do you recommend I just run a "database add extra tags>music" from xDatabase when I add files to my music DB or should I stick with what I am using now: "database add extra fields" from xMusic. I would like just to switch over to xDatabase and just use xMusic for the automatic updates of play counts.

Can you foresee any problems with this???
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby S Pittaway on Thu Apr 03, 2008 3:05 pm

xMusic calls the same routine that xDatabase uses, i simply pre-set a few of the parameters that xDatabase reads from its ini-file.

So it should be fine.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: xMusic - some extra music stuff

Postby scottw on Thu Apr 03, 2008 4:23 pm

Great thanks!!!

I did some comparisons before just to see what the differences are between xMusic and xDatabase and noticed a few but none that affect me but thought I would let you know.
Here are the tags I have with the current xMusic:
Code: Select all
-----ALBUM LEVEL-----

<year     
<album.artist     
<xdb.date.added.album     
<xdb.date.added.sort.album     
<xdb.rating     
<album.artist.sort     
<xdb.played.count
<composer>     
<xdb.date.added.sort     
<albumname.sort     
<xdb.date.added     
<xdb.random     
<albumname.search     
<xdb.parent.id.1
<genre     
<albumname     
<xdb.id     
<xdb.last.played.     
<artist     
<artist.sort     
<xdb.played

-----Track Level-----

<xdb.parent.id.2         
<xdb.rating         
<xdb.date.added.track         
<trackname         
<tracknumber         
<xdb.played         
<xdb.played.count         
<composer         
<xdb.last.played.sort         
<xdb.date.added.sort         
<xdb.date.added         
<trackname.search         
<xdb.parent.id.1         
<xdb.id         
<trackfilename         
<xdb.date.added.sort.track         
<artist         
<artist.sort         
<xdb.random         
<length


If I have a DB from the latest xMusic and run a "database add extra fields" from xDatabase I get the following changes:

-----Album Level-----
"album.artist" is gone
"album.artist.sort" is gone
"albumname.sort" is gone

-----Track Level-----
"Composer" tag is gone
"Genre" is added

If I go from a freshly imported music DB to just running "database add extra fields" from xDatabase here are the changes:

-----Album Level-----
"album.artist" is gone
"album.artist.sort" is gone
"albumname.sort" is gone
"albumname.search" is gone
"artist.sort" is gone

-----Track Level-----
"Composer" is there
"Genre" is there
"trackname.search" is gone
"artist sort" gone

I know you already know most of this and I posted for 2 reasons:
1) It may help someone else :D
2) In a few weeks I will need it for some reason and be cussing myself for not writing it down somewhere :lol: :lol:

Thanks for everything!!!
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby S Pittaway on Thu Apr 03, 2008 6:48 pm

See if these are set in the ini file for xDatabase:

General - Convert Old Tags = true
General - Add Standard Tags = true
General - Get Date Added From File = true
General - Add Date Added For "type" = true
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: xMusic - some extra music stuff

Postby scottw on Thu Apr 03, 2008 6:54 pm

This is my INI so far:

[Settings]
Format Id = 000000
Format Rating Char = ¶
Format Played Text = played
Format Unplayed Text = un-played
Format Date Added = d MMM yy
Format Date = d MMM yy, hh:mm
Format Date Sort = yyMMddhhmm
Format Null Classification =
Format Null Genre = Unclassified


[music]
General - Convert Old Tags = true
General - Add Standard Tags = true
General - Add Played Info To Dirs = false
General - Get Date Added From File = true
General - Add Date Added For "type" = true
Genres - Tidy = true
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby scottw on Fri Apr 04, 2008 12:38 am

Sean,

Really Really Really not trying to be a pain in the butt.

I have an issue with the play counts being set back to 1 after a "database.add.extra.fields".

I have a music DB which has been working with your older release of xMusic (the one before your April 2nd copy). When I add more music to my DB my import command runs a "refresh>music" then runs xMusic's "database.add.extra.fields", all was working fine.

I have just setup the latest version and ran the "database.add.extra.fields" and it "upgraded" all of my tags to the new format and kept all of the settings (ie. play count). If I run "database.add.extra.fields" again it resets my play counts to 1, at least the one's I checked (I was testing on the same track for testing purposes).

Example:

I have a track with a played.count of 3 with the pre-April release of xMusic. I setup the new xMusic and run "database.add.extra.fields" to update the tags. The same track now has a xdb.played.count of 3, still. I run "database.add.extra.fields" again and that same track now has an xdb.played.count of 1 :?:

Oh and it also does the same thing if I use xDatabase instead, running the "database.add.extra.tags".

I will do a little more testing tonight until my wife starts to yell at me to get off the computer :lol:



Any idea??

Little update: If after the count gets set to 1 I play the song, the count goes to 2 and I then run "database.add.extra.fields" again it goes back to 1.

Little Little Update: It does the same thing with the copy you released before you added the "type" section for me (the April 2nd copy) as well as the latest April 3rd copy.
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: xMusic - some extra music stuff

Postby S Pittaway on Fri Apr 04, 2008 8:59 am

This shares the "add new tag" code with xdatabase, when i updated xMusic i seem to have lost a version... Anyway i have re-added the changes that i made and it should be OK now.

Scott, these are the fields that were added to a clean music database, do they look ok?

track
<artist.sort>james</artist.sort>
<trackname.search>james \ gold mother \ come home</trackname.search>
<xdb.played.count>0</xdb.played.count>
<xdb.random>4386506</xdb.random>
<xdb.id>000002</xdb.id>
<xdb.parent.id.1>000001</xdb.parent.id.1>
<xdb.parent.id.2>000000</xdb.parent.id.2>
<xdb.date.added>12 Mar 08</xdb.date.added>
<xdb.date.added.sort>0803121200</xdb.date.added.sort>
<xdb.date.added.track>12 Mar 08</xdb.date.added.track>
<xdb.date.added.sort.track>0803121200</xdb.date.added.sort.track>
<xdb.rating>¶¶¶</xdb.rating>
<xdb.played>un-played</xdb.played>
<xdb.last.played.sort>0000000000</xdb.last.played.sort>

album
<xdb.played.count>0</xdb.played.count>
<xdb.random>3539786</xdb.random>
<xdb.id>000001</xdb.id>
<xdb.parent.id.1>000000</xdb.parent.id.1>
<xdb.date.added>13 Mar 08</xdb.date.added>
<xdb.date.added.sort>0803131200</xdb.date.added.sort>
<xdb.date.added.album>13 Mar 08</xdb.date.added.album>
<xdb.date.added.sort.album>0803131200</xdb.date.added.sort.album>
<xdb.rating>¶¶¶</xdb.rating>
<xdb.played>un-played</xdb.played>
<xdb.last.played.sort>0000000000</xdb.last.played.sort>
<album.artist>James</album.artist>
<albumname.search>james - gold mother</albumname.search>
<artist.sort>james</artist.sort>
<album.artist.sort>james</album.artist.sort>
<albumname.sort>gold mother</albumname.sort>


Please let me know if you see any other issues, like i said the plugin is very simple so it only takes a few seconds to fix most of them.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

PreviousNext