mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[api] Clean up imports and add OS name to User-Agent
This commit is contained in:
parent
65085e5b4a
commit
f3991d3ee2
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue