Python - COM interface file pointer

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

Moderators: Gurus, Addon Administrators

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

Python - COM interface file pointer

Post 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?
Peke
Posts: 17484
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Python - COM interface file pointer

Post 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.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
ninov
Posts: 5
Joined: Sun Oct 20, 2013 8:47 am

Re: Python - COM interface file pointer

Post by ninov »

Oh, thanks.
Stupid me.
Post Reply