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 » Wed Nov 24, 2010 4:46 pm

Tursiops47 wrote:@mark. I want to use a program called TuneUp to go through my (38606) MM files and clean up titles, album art, etc.
http://www.tuneupmedia.com/index.php currently only works with iTunes and WMP. Do you think d_itunes.dll would be appropriate or do you know of some other add-on or way to accomplish this?
Definitely not. The changes tuneup will effect into iTunes will be reversed by the plugin. The best solution for cleaning tags is MM. Look no further.
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 » Thu Nov 25, 2010 11:19 am

Al4MM wrote:I'm really wanting to get this one to work.
I'm using windows 7, latest MM and iTunes.
I have iTunes open before running MM.
MM takes quite a while to open and when it does iTunes does not appear in the Portable/Audio Devices List.
If I start MM and immediately click on the Restore from the taskbar then iTunes does appear in the list, but none of my other devices. If I attempt to sync I get an error of a "No active device has been detected" and when going back into the list itunes has dissappeared and all my other devices are back. Any ideas?
Are you running both MM and iTunes as Administrator?
Have you got d_itunes.dll in the plugins folder?
I am unclear about what you mean by "Restore from the taskbar". Please explain.
Can you capture any debug output? (see start of thread for instructions).
Can you provide a screenshot?
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

Binzer30

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by Binzer30 » Mon Nov 29, 2010 7:21 pm

Hi Mark

Just a short note to let you know d_tunes is amazing. I prefer MM but it's terrible when it comes to syncing with an ipod, where I find iTunes is best. But running two separate libraries is a nightmare. I stumbled across this and I'm already seeing the benefits. Using the plugin to get MM to produce lower bitrate files that are then copied into the iTunes library for syncing from there is genius. I have 2 questions though:

1. I didn't configure it to delete the cache files automatically. Is it safe to manually delete them after iTunes has copied the files into it's library?

2. I get a repeated error in iTunes telling me that a filename is too long. Is there a character limit on the filenames in the cache? Obviously the way the the files are name with the full directories means filenames are elongated. I don't know which are the offending files without checking 10,000+

A wonderful piece of coding, thank you very much!

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

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Tue Nov 30, 2010 7:16 am

@Binzer30

Thank you for your kind words, they are much appreciated.

I always keep the cached files and iTunes not take the files into it's media folder. This is the fewest number of file copies. It also means that you don't get redundant duplications in the iTunes media folder .... this can happen if (say) the artist is changed and the track re-added.

Other users like iTunes to manage it's own media folder and so treat the cached files as transitory and let iTunes take a copy. And yes, normally you'd have "delete afterwards" switched on for this scenario. If it wasn't initially switched on then you can manually delete the files afterwards.

The design of the folder path becoming the file name was a deliberate choice to make the cache more easy to manage (generally the file location is more static than the ID3 tag information that iTunes uses). In itself it doesn't cause the file name to be too long as the maximum length constraint is upon the total file path. If you are having long name issues I suggest relocating the cache folder nearer the root folder of the drive. Another trick that I know has been used is to introduce a subst drive letter to the folder location ....

e.g. The cache folder is at "c:\users\myname\desktop\MM cache" either

1. move it to "c:\MM" and change the plugin's folder name to be "c:\MM"
2. create a substitute drive letter "M:" with "subst M: c:\users\myname\desktop\MM cache" and change the plugin's folder name to be "M:\"

Reading your post more closely also makes me realise that the iTunes name length errors might be due to the length of path used to store the iTunes media folder. The same solution above can be applied.

I hope that this helps.
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

Binzer30
Posts: 2
Joined: Mon Nov 29, 2010 7:23 pm

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by Binzer30 » Wed Dec 01, 2010 6:14 pm

Hi Mark

I did exactly what you said. I moved the cache to C:\MM, deleted all iTunes content and then pointed it's library to that folder and unchecked the option which causes iTunes to copy files to its media folder and to organise them.

MM is only about a quarter of the way through re-syncing my 10,000+ collection to iTunes, but so far so good, none of the problems I experienced before.

Many thanks once again. I hope MediaMonkey give you some money for this and build it into a new version of MM!

Firetribe
Posts: 74
Joined: Sat Jul 25, 2009 7:04 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by Firetribe » Fri Dec 03, 2010 8:51 am

Mark, I've found a "bug" in the latest version. If d_itunes.dll is configured not to check if iTunes is running, if the box for minimizing iTunes is unchecked and the box to supress the message "iTunes not running" is unchecked, too, then the black MM-window, that appears when starting the program does not vanish. MM then starts minimized, and when I maximize it the black window remains in the middle of the screen. If iTunes is already started everything works just fine, same if I tick the box to supress the message.
Not quite a heavy thing, but I thought you should know it :wink:

Best regards,
Tribe
Unter der Maske eines Clowns siehst du die Spuren seiner Tränen...

JuBe
Posts: 70
Joined: Sat Dec 30, 2006 7:15 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by JuBe » Sun Dec 05, 2010 5:12 am

hey Mark

Great plugin, I'm using this every day and has saved me the headache of syncing my iDevice to MM.

One question, do you have any plans of integrating skip count into MM and iTunes. I know the current version of MM doesn't have a skipcount field, but I know I and many others use the AutoRate Accurate script, which uses Custom Field 5 to keep count.

Binzer30
Posts: 2
Joined: Mon Nov 29, 2010 7:23 pm

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by Binzer30 » Sun Dec 05, 2010 12:40 pm

Firetribe wrote:Mark, I've found a "bug" in the latest version. If d_itunes.dll is configured not to check if iTunes is running, if the box for minimizing iTunes is unchecked and the box to supress the message "iTunes not running" is unchecked, too, then the black MM-window, that appears when starting the program does not vanish. MM then starts minimized, and when I maximize it the black window remains in the middle of the screen. If iTunes is already started everything works just fine, same if I tick the box to supress the message.
Not quite a heavy thing, but I thought you should know it :wink:

Best regards,
Tribe
I noticed this too and struggled to get past the MM black splash screen to start with. It would only clear when I manually opened iTunes. As Tribe says, it's not a big deal, but worth noting. I now have MM configured to open and close iTunes automatically when MM does.

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

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Tue Dec 07, 2010 7:09 am

@firetribe
@binzer30

Yes, there is a problem here ... but for once it seems not to be mine! See http://www.mediamonkey.com/forum/viewto ... sh#p276846

Try starting MM with a /nosplash option on the command line. Out of habit I always do this as it makes the startup time shorter.
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 » Tue Dec 07, 2010 7:12 am

@JuBe

I have the code already in place for skip counts and am awaiting MM4 before implementing. Sorry, but I'm not going to implement it twice.
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

BearCavalry
Posts: 16
Joined: Wed Dec 01, 2010 2:11 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by BearCavalry » Wed Dec 29, 2010 4:59 am

Great script! Thanks so much for all of your hard work! But is there a way to
1) Have the synchronization occur whenever a change is made to any part of the library (track or playlist)?

or

2) Have the synchronization occur every 5 minutes or so?

marcelser
Posts: 2
Joined: Tue Jan 04, 2011 2:06 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by marcelser » Tue Jan 04, 2011 2:17 am

Hi,

What an amazing plugin. I love it. But I have a question, maybe you can answer it. In MM I said that it should limit the size synced to iTunes to 14GB and set MM to sync the device with random data until full, so far so good.

When I looked at the selected music to sync MM reports 3581 files, 12.2 GB. But after syncing, iTunes reports 4284 files, 14.95GB. But when I verfiy the contents of the MMiTunesCache Folder it's size is only 12.7GB (According to Windows Explorer) so this is ok.

So my guess is that there's still some leftover data in iTunes, can I somehow clear out the whole iTunesDatabase and re-sync all files? How to do this, do I have the empty the MMiTunesCache or will it re-populate all the songs in iTunes once I deleted all the content in iTunes? Is there a way to have a fresh new database in iTunes?

Thanks for you help

Marc

rovingcowboy
Posts: 14162
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by rovingcowboy » Tue Jan 04, 2011 2:36 am

check nohitter151's article on how to use ipods with mediamonkey. fastest way i remember to get to it is by clicking
the link to the helpful messages page in my signature and then going to item number 22 i think thats it? might be number 20 :D

you might get help in that article for it ? or wait until someone with an ipod comes by it wont be long before they do. 8)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy 5 Android 5) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

marcelser
Posts: 2
Joined: Tue Jan 04, 2011 2:06 am

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by marcelser » Tue Jan 04, 2011 8:30 am

Hi Rowingcowboy,

Thanks for you help but I think you misunderstood. I want to sync MM to iTunes through d_itunes.dll deviceplugin, but after syncing iTunes shows more songs as the ones that were synced. This is because there's some leftover data in iTunes (.wav files and other stuff I didn't include in MM) which obviously don't get deleted when syncing (although I checked the "delete removed files" in the autosync settings for the device). I guess this can be easily solved but emptying all the iTunes songs and re-sync everything.

My question is: how can I completely empty the iTunes database (or start over with a new one) and how do I resync all the files to iTunes? Can I simply do a normal auto-sync or do I have to delete some cached files (maybe the MMiTunesCache folder)?

I hope anybody can help here.

Another question is of course: why does the d_itunes.dll not delete all the stuff in iTunes altough I configured the device settings accordingly? To me it seems like it only removed .mp3 files but .wav and .mid and other not supported format were left in the iTunes database? Is this a bug or is this behaviour intended?

Thanks for any help

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

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Post by markstuartwalker » Wed Jan 12, 2011 5:02 am

Intended by design. The plugin tags each of the tracks that it puts into iTunes with a reference which points back to it's associated track in MM. Any tracks without this reference are ignored by the plugin.

This allows iTunes to mix 'manually sourced' and 'MM sourced' tracks and so it is possible to sync a mixture into the iPhone/iPod/iPad.

On the Device Configuration page there are some advanced debug command options (at the bottom) that can flush iTunes content and cached files. Use these at your own peril - they are not for normal usage but for debug or recovery purposes.

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