Skip to content

Doing ID3 APIC with mime type '-->' documentation missing #503

Open
@steveliem

Description

@steveliem

In the code I detected a similar commentary like in the ID3 specs:
There is the possibility to put only a link to the image file by using the 'MIME type' "-->" and having a complete URL instead of picture data.

But I can't find anywhere in the documentation how to implement this in my client code.
I need a working example how to do

from mutagen.id3 import ID3, APIC

audio = ID3('music.mp3')
with open('cover.png', 'rb') as albumart:
    audio['APIC'] = APIC(
                      encoding=3,
                      mime='-->',
                      type=3, desc=u'Cover',
                      data=?????????
                    )

audio.save()

with a URL reference from an online artwork jpg or png.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions