Python - COM interface file pointer

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

ninov
Posts: 5
Joined: Sun Oct 20, 2013 8:47 am

Python - COM interface file pointer

Post by ninov » Sun Oct 20, 2013 8:52 am

Hi,
I am trying to access the cover of the currently playing song in Python via COM interface.

Code: Select all

# (...)
song = self.Player.CurrentSong
cover = song.AlbumArt
if cover.Count >= 1:
    cover = cover.Item(0).Image.ImageData
    # (...)
Now cover only returns a integer as file pointer. How can I use this file pointer to access the cover file?

Peke
Posts: 11099
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Python - COM interface file pointer

Post by Peke » Sun Oct 20, 2013 7:31 pm

I guess that you haven't read closely http://www.mediamonkey.com/wiki/index.p ... :ImageData If you can't access Pointer to read data from Python than save it to temp file and read it from PY.
Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
How to add Images to forum

ninov
Posts: 5
Joined: Sun Oct 20, 2013 8:47 am

Re: Python - COM interface file pointer

Post by ninov » Mon Oct 21, 2013 2:57 pm

Oh, thanks.
Stupid me.

Post Reply