(podcast, size)
Return the logo URL for the podcast

    The logo either comes from the media storage (see CoverArt) or from the
    default logos in the static storage.
Return the logo URL for the podcast
Return the logo URL for the podcast
def get_logo_url(podcast, size):
    """Return the logo URL for the podcast

    The logo either comes from the media storage (see CoverArt) or from the
    default logos in the static storage.
    """

    if podcast.logo_url:
        filename = hashlib.sha1(podcast.logo_url.encode("utf-8")).hexdigest()
        return reverse("logo", args=[size, get_prefix(filename), filename])

    else:
        filename = "podcast-%d.png" % (hash(podcast.title) % 5,)
        return staticfiles_storage.url("logo/{0}".format(filename))
def get_logo_url ( podcast , size ) : if podcast . logo_url : filename = hashlib . sha1 ( podcast . logo_url . encode ( "utf-8" ) ) . hexdigest ( ) return reverse ( "logo" , args = [ size , get_prefix ( filename ) , filename ] ) else : filename = "podcast-%d.png" % ( hash ( podcast . title ) % 5 , ) return staticfiles_storage . url ( "logo/{0}" . format ( filename ) )