This commit is contained in:
codey 2024-08-11 08:12:44 -04:00
parent f2f0426498
commit 50500ad2c4

View File

@ -19,6 +19,7 @@ class ValidLyricRequest(BaseModel):
- **sub**: text to search within lyrics, if found lyrics will begin at found verse [optional, default: none]
- **src**: the script/utility which initiated the request
"""
a: str | None = None
s: str | None = None
t: str | None = None
@ -59,7 +60,6 @@ class LyricSearch(FastAPI):
- **src**: the script/utility which initiated the request
"""
print(f"HI, DATA:\n{data}")
src = data.src.upper()
if not(src in self.acceptable_request_sources):
raise HTTPException(detail="Invalid request source", status_code=403)