Page 1 of 1

Python - COM interface file pointer

Posted: Sun Oct 20, 2013 8:52 am
by ninov
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?

Re: Python - COM interface file pointer

Posted: Sun Oct 20, 2013 7:31 pm
by Peke
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.

Re: Python - COM interface file pointer

Posted: Mon Oct 21, 2013 2:57 pm
by ninov
Oh, thanks.
Stupid me.