[api] Clean up imports and add OS name to User-Agent

This commit is contained in:
derrod 2021-09-03 10:58:57 +02:00
parent 65085e5b4a
commit f3991d3ee2

View file

@ -1,13 +1,15 @@
# !/usr/bin/env python
# coding: utf-8
import legendary
import requests
import logging
import requests
from platform import system
from legendary import __version__
class LGDAPI:
_user_agent = f'Legendary/{legendary.__version__}'
_user_agent = f'Legendary/{__version__} ({system()})'
_api_host = 'legendary.rodney.io'
def __init__(self):