Page 1 of 87

MediaMonkey iTunes plugin (d_itunes4.dll)

Posted: Mon Jan 04, 2010 10:41 am
by markstuartwalker
This device plugin runs iTunes in background (minimised) and allows MM to transfer tracks into it in the same manner as a media player i.e. like a USB stick or MP3 player.

There in more information here http://www.mediamonkey.com/wiki/index.p ... lugin_Info

Please provide feedback by replying into this topic.

There are versions for both MM3 and MM4. Only the MM4 version is currently under support. Note that this thread was originally for the MM3 version. The MM4 release support starts at http://www.mediamonkey.com/forum/viewto ... &start=690

Cheers
Mark



Updated 13/3/2012

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Mon Jan 04, 2010 7:37 pm
by Melloware
Just wanted to say I am impressed. What language did you build the DLL in? Delphi or C?

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Tue Jan 05, 2010 2:58 am
by markstuartwalker
Thank you :D . Delphi 2010. First time for me. Much of the code was from templates supplied by Jiri but the COM interface to iTunes was from my previous VB script.

I used Turbo Pascal many years ago. The majority of my experience is C++/VB6/Java.

Mark

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Wed Jan 06, 2010 9:00 am
by markstuartwalker
A new version has been uploaded.

* 'All' branch no longer intermittently crashes
* More complete details of tracks within the device (track length still not appearing though :-( )
* Internal preparation for configurtion pages

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Thu Jan 07, 2010 6:55 pm
by Guest
Great idea! I've looked for such a solution for a long time.
Unfortunately I didn't get it work.... :(

MM: 3.2.0.1294
itunes: 9.0.2.25
Windows 7/64bit

What I've done/tried:
- downloaded latest available dll version from 12/30/2009
- copied file to the plugin folder
- restart MM (the "iTunes" device is available in the settings of the external devices)
- start itunes
...no "external" device appears in the MM tree

Next trial
- closee MM and itunes
- start itunes
- start MM
...no "external" device appears in the MM tree

What do I have to consider to get the "iTunes-device" in the MM?

Thanks!
Pete

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Fri Jan 08, 2010 3:25 am
by markstuartwalker
Your setup matches mine very closely so I expect this to work.

I forgot to document a simple step (because I did this so long ago) ...

* Tools/Options/Portable Audio Devices and select the checkbox alongside 'iTunes'

Mark

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Fri Jan 08, 2010 4:51 am
by Guest
I've already selected the checkbox of the "iTunes" device... :(
Do I have to set up special criterias for the "iTunes" device?

Another trial was:
- Extras/Sync Device
...but MM doesn't find a active device

Pete

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Fri Jan 08, 2010 5:14 am
by markstuartwalker
Is iTunes installed at C:\Program Files\iTunes\iTunes.exe? I have a very clunky way of detecting it by checking the presence of this file.

Mark

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Fri Jan 08, 2010 8:24 am
by Guest
Ahhh, ok!
That would be the problem. My programms are on a separate partition.
I will re-install iTunes on drive C:\
Pete

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Fri Jan 08, 2010 8:36 am
by markstuartwalker
You may not have to - I have changed this to use the registry

Checkout the new version - just uploaded

* iTunes presence detected via registry rather then file presence
* internally reorganised to use iTunes ID values for filenames (with delayed DB persistence) for speed
* playlists are only refreshed if the lengths are different between MM and itunes
* stopped the use of track.custom1 and track.ISRC
* much much more testing with 600+ files

Mark

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Fri Jan 08, 2010 9:27 am
by Guest
Great! Now I have the device available.

But now there some other problems...

I tried to sync a playlist:
- right click on a playlist: "send to iTunes"
- sync is processed
- then a error message occurs: "Access violation at adress 0DFE6873 in module 'd_iTunes.dll'. Read of adress 00000000."
- curious thing: the tracks are in the iTunes playlist "My Top 25" - the original MM playlist title is not in the MM folder of iTunes

Pete

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Fri Jan 08, 2010 10:35 am
by markstuartwalker
That scenario works for me :-(

* Are all files mp3 files?
* Are any files being bit-rate converted?

Can I suggest that you do the same thing but via an autosync list to see if that works

You might also try closing MM, delete all related files out of iTunes and then retry.

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Sat Jan 09, 2010 5:24 am
by Guest
"* Are all files mp3 files?"
Yes, all the files are mp3 files

"* Are any files being bit-rate converted?"
Do you mean: after the sync to iTunes? In iTunes I can't notice any change of the bitrate.
Some of the files are VBR - if this could influence the sync.

After closing MM and deleting the related files in iTunes the sync works partially, i.e.
- sync of the tracks to a iTunes standard playlist: "Top 25" (that works for me because the playlist for the test has only 15 tracks)
- above mentioned error message appears in MM after the sync
- using a playlist with 90 tracks the files are spread in different iTunes-playlist - also to the "recently added" playlist

I am helpless :(

Pete

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Sat Jan 09, 2010 10:46 am
by JW
I am having problems with the driver as well. I try to sync my selected playlists, and it only get through 60-90 songs, then stops (Synchronizing iTunes progress bar disappears) and there are no error messages. If I sync again, it seems to continue from the song it left off at, but always starts the count over again. So far I haven't seen any playcounts or ratings sync back to MM either.

I have not seen any documentation for the expected use of this plugin, so what is the preferred usage methodology?

I started with the script which was working great, well done! But the plugin seems to have some issues.

Should I have wiped out my iTunes database completely before changing to the plugin?
Is it ok to have the script and the plugin installed at the same time?

I'm running MM 3.2.0.1292 and iTunes 9.0.2.25

-Josh

Re: MediaMonkey iTunes device plugin (d_itunes.dll)

Posted: Sat Jan 09, 2010 11:18 am
by nynaevelan
JW:

I too was using the previous plugin and I was running into similar problems. I ended up removing the plugin and starting over with a new db in iTunes. But with the plugin I am not able to get the playcounts from iTunes to update in MM.