3jackdaws / soundcloud-lib

Soundcloud API wrapper for tracks & playlists that doesn't require API credentials. Asyncio support.
MIT License
94 stars 24 forks source link

help better artwork quality #38

Closed Alihtt closed 1 year ago

Alihtt commented 1 year ago
from sclib import SoundcloudAPI, Track

api = SoundcloudAPI()

def artwork(url):
    result = api.resolve(url)
    assert type(result) is Track
    artwork_url = result.artwork_url.replace('large','t500x500')
    return artwork_url

you just need to replace 'large' with 't500x500'