hyperboria/nexus/hub/fancy_names.py
the-superpirate 43a4d0e17f - feat: Open Hub API
GitOrigin-RevId: dd347635b52b69451a50cca3163fbfbcefb8561e
2021-04-09 15:32:52 +03:00

9 lines
153 B
Python

from urllib.parse import urlparse
fancy_names = {
}
def get_fancy_name(url):
return fancy_names.get(urlparse(url).netloc.lower(), 'Saturn Rings')