def add_album_art(file_name, album_art):
    """
    Add album_art in .mp3's tags
    """

    img = requests.get(album_art, stream=True)  # Gets album art from url
    img = img.raw

    audio = EasyMP3(file_name, ID3=ID3)

    try:
        audio.add_tags()
    except _util.error:
        pass

    audio.tags.add(
        APIC(
            encoding=3,  # UTF-8
            mime='image/png',
            type=3,  # 3 is for album art
            desc='Cover',
            data=img.read()  # Reads and adds album art
        )
    )
    audio.save()

    return album_art
def add_album_art ( file_name , album_art ) : img = requests . get ( album_art , stream = True ) img = img . raw audio = EasyMP3 ( file_name , ID3 = ID3 ) try : audio . add_tags ( ) except _util . error : pass audio . tags . add ( APIC ( encoding = 3 , mime = 'image/png' , type = 3 , desc = 'Cover' , data = img . read ( ) ) ) audio . save ( ) return album_art
Add album_art in .mp3's tags