G-DRAGON 'One Of A Kind'

song = {
    "artist": "G-DRAGON",
    "title": "One Of A Kind",
    "feat": None,
    "album": "One Of A Kind",
    "album_type": "EP",
    "cover": "/assets/music/one-of-a-kind.jpg",
    "track": 1,
    "year": 2012,
    "youtube": "rJnICByeL8Q"
}

from IPython.display import HTML

HIDDEN = {"youtube"}  # 영상은 아래 칸에서 재생

def show(k, v):
    if k == "cover":
        return f'<img src="{v}" alt="{song["album"]} 커버" width="200">'
    return v

HTML('<table>' + ''.join(f'<tr><th>{k}</th><td>{show(k, v)}</td></tr>' for k, v in song.items() if v is not None and k not in HIDDEN) + '</table>')
artist G-DRAGON
title One Of A Kind
album One Of A Kind
album_type EP
cover One Of A Kind 커버
track 1
year 2012
from IPython.display import YouTubeVideo
YouTubeVideo(song['youtube'], width=640, height=360)