[SOLVED] v1.7.5.1 not updating file tags

Forum to discuss MonkeyTunes DACP Server for MediaMonkey

[SOLVED] v1.7.5.1 not updating file tags

Postby adrianmarsh » Mon Oct 07, 2013 10:39 am

Hi,

I've started syncing MP3s between PCs and noticed that Monkeytunes seems to update Database stats, but thats not written back to the MP3 file.

Setup: iPhone5 iOS7 with Remote app, MM: 4.1.0.1662

Test: Select a file, play it in MM and open Explorer on it. Most of my files have an old create/modified timestamp. I select a rating Change in Remote - and MM updates to reflect that. However theres no display of '1 file to be tagged' status that should flicker by.

If I check the filestamps on the file in Explorer, nothings changed in the stamps.

If I do the same thing in MM directly then I get the '1 file to be tagged' flickers by, and the modified timestamp does change. SO the issue only seems to be when playing via MonkeyTunes.

I'm hoping its a setting somewhere. I have 'Update tags when editing properties' ticked under Tags and Playlists.
adrianmarsh
 
Posts: 5
Joined: Mon May 30, 2011 4:24 am

Re: v1.7.5.1 not updating file tags

Postby Melloware » Wed Oct 09, 2013 6:30 am

I just use the MediaMonkey API to play songs etc. If they are updating stats in your MP3 it would be done inside MediaMonkey. I don't touch the tags at all except in the case when you change a star rating from the mobile client I update the Tag with that star rating.

I would say this is a question for the MediaMonkey folks over at the MediaMonkey forums. Because we just queue up songs and let MM play them. So somehow playing songs through the UI of MM and through the API like MonkeyTunes uses must be different.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11020
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: v1.7.5.1 not updating file tags

Postby adrianmarsh » Wed Oct 09, 2013 5:47 pm

Hi,

Ok I've created a thread over there too.

It is the Star rating tag I'm talking about. Do you know the name of the API you use when sending the star rating through ? I can at least help them focus.
I could swear this used to work, but that was probably several MM versions ago when I last checked. I only noticed it this time because I'm now testing the syncing between PCs and noticed the sync tool didn't detected a file change on a test MP3.
adrianmarsh
 
Posts: 5
Joined: Mon May 30, 2011 4:24 am

Re: v1.7.5.1 not updating file tags

Postby Melloware » Sat Oct 12, 2013 7:19 am

Here is the code that updates the star rating...

Code: Select all
LOG.DebugFormat("Updating Track Id = {0} To Rating = '{1}'", trackId, rating);
               SDBSongData track = MediaMonkey.Player.CurrentSong;
               if (track != null) {
                  try {
                     MediaMonkey.Database.BeginTransaction();
                     track.Rating = rating;
                     track.UpdateDB();
                  } finally {
                     MediaMonkey.Database.Commit();
                  }
               }
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11020
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: v1.7.5.1 not updating file tags

Postby adrianmarsh » Mon Oct 21, 2013 1:08 pm

Hi,

Theres an answer to this on the MM thread - apparently your using the wrong API:


The issue is that the addon's dev uses UpdateDB instead of UpdateAll

Theres links in the thread to documentation
adrianmarsh
 
Posts: 5
Joined: Mon May 30, 2011 4:24 am

Re: v1.7.5.1 not updating file tags

Postby Melloware » Tue Oct 22, 2013 6:24 am

Got it! This must be a new method that was not there before. Let me fix it and upload a new version.

Edit: Can you try this 1.7.5.2 version and see if its fixed. I updated to use UpdateAll.

http://melloware.biz/download/warez/mon ... s-beta.zip
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11020
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: v1.7.5.1 not updating file tags

Postby adrianmarsh » Tue Oct 22, 2013 2:07 pm

Hi,

Yep that seems to get it ! Now when I change it via Monkeytunes I see it write back to the MP3, so that the Rating changes even in File Explorer too!

Thanks!
adrianmarsh
 
Posts: 5
Joined: Mon May 30, 2011 4:24 am

Re: v1.7.5.1 not updating file tags

Postby Melloware » Tue Oct 22, 2013 3:22 pm

Awesome!!! Thanks for reporting this I had no idea.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11020
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA


Return to MonkeyTunes for MediaMonkey

Who is online

Users browsing this forum: No registered users and 1 guest