Compare commits
2 Commits
e5dc72ea1b
...
0fc78b08e4
Author | SHA1 | Date | |
---|---|---|---|
0fc78b08e4 | |||
f1401ee6bf |
@@ -2,7 +2,7 @@ import logging
|
|||||||
from fastapi import FastAPI, Request, Response, Depends
|
from fastapi import FastAPI, Request, Response, Depends
|
||||||
from fastapi_throttle import RateLimiter
|
from fastapi_throttle import RateLimiter
|
||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
from utils.hifi_wrapper import HifiUtil
|
from utils.sr_wrapper import SRUtil
|
||||||
from auth.deps import get_current_user
|
from auth.deps import get_current_user
|
||||||
|
|
||||||
logging.getLogger().setLevel(logging.INFO)
|
logging.getLogger().setLevel(logging.INFO)
|
||||||
@@ -16,7 +16,7 @@ class RIP(FastAPI):
|
|||||||
def __init__(self, app: FastAPI, my_util, constants) -> None:
|
def __init__(self, app: FastAPI, my_util, constants) -> None:
|
||||||
self.app: FastAPI = app
|
self.app: FastAPI = app
|
||||||
self.util = my_util
|
self.util = my_util
|
||||||
self.trip_util = HifiUtil()
|
self.trip_util = SRUtil()
|
||||||
self.constants = constants
|
self.constants = constants
|
||||||
self.endpoints: dict = {
|
self.endpoints: dict = {
|
||||||
"trip/get_artists_by_name": self.artists_by_name_handler,
|
"trip/get_artists_by_name": self.artists_by_name_handler,
|
||||||
|
@@ -1,9 +1,6 @@
|
|||||||
from aiohttp import ClientSession, ClientTimeout
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from urllib.parse import urlencode, quote
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import asyncio
|
|
||||||
from streamrip.client import TidalClient
|
from streamrip.client import TidalClient
|
||||||
from streamrip.config import Config as StreamripConfig
|
from streamrip.config import Config as StreamripConfig
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
Reference in New Issue
Block a user