Python - COM interface file pointer

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

Moderator: Gurus

Python - COM interface file pointer

Postby 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?
ninov
 
Posts: 5
Joined: Sun Oct 20, 2013 8:47 am

Re: Python - COM interface file pointer

Postby 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
Peke
 
Posts: 10589
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia

Re: Python - COM interface file pointer

Postby ninov » Mon Oct 21, 2013 2:57 pm

Oh, thanks.
Stupid me.
ninov
 
Posts: 5
Joined: Sun Oct 20, 2013 8:47 am


Return to MediaMonkey 4 Addons developer forum

Who is online

Users browsing this forum: No registered users and 5 guests