MediaMonkey iTunes plugin (d_itunes4.dll)

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Sun Jun 27, 2010 10:41 am

@frankz

OK, I've recognised the problem here. You're quite right that the sync entries are updated from the ID3tag information in the file rather than the MM database values. I've never spotted this because I've always used mp3s where that MM database tag values are written back to the mp3 file itself i.e. they are always in step. I presume that you're DVD's are read-only and so remain out of step.

I've updated the code to sync against the database content rather than the file information which should fix your problem. I also run this upon initial sync to bring it in line from the start.

New version uploaded http://www.mediafire.com/file/hmoqzdmyyem/d_iTunes.dll

17/6/2010
* Checks to confirm that tracks are still present in iTunes - delete them if they aren't
* suppressMessageItunesRunning setting configuration UI added
* Additional Config option "Advanced recovery commands" added to aid corruption recovery
23/6/2010
* Ratings no longer assigned when sync is switched off (to cater for a read only network share)
27/6/2010
* Tag attributes updated at post track loading (assumed iTunes read from file)
* Tag attributes read from MM database rather than disk file (getSongDataByID revertion)
* iTunes Year parameter (integer) assigned from MM Year parameter (Tdate)
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Sun Jun 27, 2010 10:55 am

Warning::

I've spotted a potential problem with my plugin ... when no Cache path is set and there is no conversion being done then the MM and iTunes use the same track on disk (they both point at the same file location).

HOWEVER ... MM and iTunes handle some ID3tag information slightly differently
* ID3Tag.Rating percentages have slightly different thresholds for star ratings.
* ID3Tag.Year is an integer in iTunes whereas MM uses full date values ie day and month.

Generally both MM and iTunes write this tag information back to the track file. Thus with certain values the 2 applications can 'fight' over the attribute values until a mutually acceptable value is reached.

If you are particularly sensitive to these attributes changing then please configure your plugin to have a Cache path. This will ensure that MM and iTunes will use separate locations and there will be no conflicts.

I'll try and work on a more permanent solution.

Mark
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Sun Jun 27, 2010 11:01 am

@Frankz:
I've also noticed that the "last played" information, while it appears correctly in iTunes as taken from the iPod, doesn't make it back to the MM library for items stored on DVD-R. This works fine for items stored on the hard drive, too.
I'm not sure that I understand this statement. How are "MM library for items stored on DVD-R"?
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507

frankz
Posts: 81
Joined: Tue Jun 22, 2010 12:53 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by frankz » Sun Jun 27, 2010 11:16 am

markstuartwalker wrote:@Frankz:
I've also noticed that the "last played" information, while it appears correctly in iTunes as taken from the iPod, doesn't make it back to the MM library for items stored on DVD-R. This works fine for items stored on the hard drive, too.
I'm not sure that I understand this statement. How are "MM library for items stored on DVD-R"?
Sorry if that was unclear. If I listen to one of the items originally sourced from the DVD-R on my iPod, iTunes shows the "last played" date and "play count" correctly, but that information never makes it back MM like it does for writable files.

UPDATE: Scratch that. Your latest update corrects this problem.
Last edited by frankz on Sun Jun 27, 2010 11:28 am, edited 1 time in total.

Lowlander
Posts: 47545
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by Lowlander » Sun Jun 27, 2010 11:18 am

Played data is only stored in the database and thus only works for tracks that are in the database.
Lowlander (MediaMonkey user since 2003)

frankz
Posts: 81
Joined: Tue Jun 22, 2010 12:53 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by frankz » Sun Jun 27, 2010 11:22 am

Lowlander wrote:Played data is only stored in the database and thus only works for tracks that are in the database.
These tracks are in the database as shown in the picture examples above.

Syncing play counts and last played shouldn't care that the files are not writable because it never touches the files, but it does care for some reason.

UPDATE: Scratch that. Your latest update corrects this problem.

diegovar
Posts: 5
Joined: Sun Jun 27, 2010 2:19 pm

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by diegovar » Sun Jun 27, 2010 2:32 pm

I'm using this plugin and it's working great, I'm really thankful for all the hard work you guys have put into making this a fantastic replacement to the included ipod plugin (especially given that the latest Itunes update kills the MM ipod plugin). I'm having a small problem though, if I disable the checkboxes to autostart itunes with MM, when I close and open MM Itunes is still openes and the checkbox is enabled. Any fix for this?

Thanks

Diego

frankz
Posts: 81
Joined: Tue Jun 22, 2010 12:53 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by frankz » Sun Jun 27, 2010 5:42 pm

FYI - the update didn't correct the issue with iTunes reading tag information from files rather than MM library information upon sync, so I just took the files I was using from the DVD-R, stuck them on a writable thumb drive, made the tags nice and pretty and used them that way. Problem solved for my purposes.

gvala
Posts: 22
Joined: Tue Aug 18, 2009 4:00 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by gvala » Mon Jun 28, 2010 4:22 am

markstuartwalker wrote:
gvala wrote:iOS4 introduced a new feature. Creating lists on the iphone. These lists are then replicated in iTunes and synced. It would be a great feature of the plugin if these lists were able to be transfered to MM
what is a list in the context of a track or playlist?
Sorry I didn' make it clear. Playlist.

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Mon Jun 28, 2010 11:42 am

gvala wrote:
markstuartwalker wrote:
gvala wrote:iOS4 introduced a new feature. Creating lists on the iphone. These lists are then replicated in iTunes and synced. It would be a great feature of the plugin if these lists were able to be transfered to MM
what is a list in the context of a track or playlist?
Sorry I didn' make it clear. Playlist.
I've actually considered doing this already, so most of the code is already there. It was possible before to save a Genius Playlist as a normal one with IOS3. iOS4 has just extended this further.

I have not upgraded to iOS4 yet so can you help me out please ...
  • Once an iPhone created playlist is sync'd to iTunes is it possible to then modify it in iTunes? ... and re-sync it back to the iPhone?
  • How does the plugin 'see' this foreign playlist. If you have 'delete tracks that aren't in the autosync list' switch on then I'd expect it to be deleted. Is it?
.. and a few questions about how it should behave ...
  • Should all playlists 'found' in iTunes be brought back? Should it prompt for the option to do so? What about a naming convention being applied?
  • Where should the playlist be created in MM? SImply in the root of 'Playlists'?
  • If the playlist already exists in MM what should happen?
Please give me some feedback and I'll see what I can do.

Mark
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Mon Jun 28, 2010 11:48 am

diegovar wrote:I'm using this plugin and it's working great, I'm really thankful for all the hard work you guys have put into making this a fantastic replacement to the included ipod plugin (especially given that the latest Itunes update kills the MM ipod plugin). I'm having a small problem though, if I disable the checkboxes to autostart itunes with MM, when I close and open MM Itunes is still openes and the checkbox is enabled. Any fix for this?

Thanks

Diego
Fixed in next release. Work around for now ... disable checkboxes, sync iTunes, exit and should change values.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507

diegovar
Posts: 5
Joined: Sun Jun 27, 2010 2:19 pm

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by diegovar » Mon Jun 28, 2010 11:58 am

markstuartwalker wrote:
diegovar wrote:I'm using this plugin and it's working great, I'm really thankful for all the hard work you guys have put into making this a fantastic replacement to the included ipod plugin (especially given that the latest Itunes update kills the MM ipod plugin). I'm having a small problem though, if I disable the checkboxes to autostart itunes with MM, when I close and open MM Itunes is still openes and the checkbox is enabled. Any fix for this?

Thanks

Diego
Fixed in next release. Work around for now ... disable checkboxes, sync iTunes, exit and should change values.
Great, thanks!

gvala
Posts: 22
Joined: Tue Aug 18, 2009 4:00 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by gvala » Mon Jun 28, 2010 11:46 pm

markstuartwalker wrote:
I've actually considered doing this already, so most of the code is already there. It was possible before to save a Genius Playlist as a normal one with IOS3. iOS4 has just extended this further.

I have not upgraded to iOS4 yet so can you help me out please ...
  • Once an iPhone created playlist is sync'd to iTunes is it possible to then modify it in iTunes? ... and re-sync it back to the iPhone?
  • How does the plugin 'see' this foreign playlist. If you have 'delete tracks that aren't in the autosync list' switch on then I'd expect it to be deleted. Is it?
1. Yes and yes. It's like anyother playlist in iTunes.
2. Exactly! It behaved as expected. Once I synced MM with iTunes it asked me to delete the playlist.
markstuartwalker wrote: .. and a few questions about how it should behave ...
  • Should all playlists 'found' in iTunes be brought back? Should it prompt for the option to do so? What about a naming convention being applied?
  • Where should the playlist be created in MM? SImply in the root of 'Playlists'?
  • If the playlist already exists in MM what should happen?
Please give me some feedback and I'll see what I can do.

Mark
What I think as best practice is that the plugin has to replicate the playlist back in MM keeping the name and delete it from iTunes (of course, after re-sync, if the playlist is checked, it would be brought back in iTunes). Or, if it is convenient by mean of code programming, just keeping the two lists in sync.

The playlist would be nice to be replicated in a folder called e.g. "iPhone playlists". That would also solve the problem of possible duplicate names.

Thank you a lot for your effort :D

John

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Tue Jun 29, 2010 11:16 am

@gvala:

This mechanism would have a flaw ... if a playlist called XYZ were sync'd to iTunes and then XYZ were renamed to ABC in MM. Upon a second sync ABC would be created in iTunes and XYZ would be uploaded to MM. Definitely NOT what was intended.

Can iOS4 rename these locally created playlists? If so playlists could be renamed to have a prefix to indicate that they should be uploaded and reliably recognised.

Is that worth trying?

Mark

Edit: No, it can't :cry:
Last edited by markstuartwalker on Wed Jun 30, 2010 5:16 am, edited 1 time in total.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Wed Jun 30, 2010 5:13 am

Beware iOS4 users!

iOS4 brings in the ability to create playlists but also to modify existing ones. Playlists modified in this way are re-sync'd back to iTunes.

Note that this plugin was never designed to bi-directionally handle playlist synchronisation. The design premise is that MM holds the master copy of tracks, ID3Tags and playlists. This means that any changes to iPhone or iTunes playlists will be reverted upon the next sync from MM.

Mark
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507

Post Reply