More progress re: #34
- Change of direction, LRCLib searches from /lyric/search now use internal cache - which is a PGSQL import of the LRCLib SQLite database. Change to PGSQL was made for performance.
This commit is contained in:
@@ -110,25 +110,6 @@ class ValidLyricRequest(BaseModel):
|
||||
}
|
||||
|
||||
|
||||
class ValidLRCLibRequest(BaseModel):
|
||||
"""
|
||||
Request model for lyric search.
|
||||
|
||||
Attributes:
|
||||
- **artist** (str): Artist.
|
||||
- **song** (str): Song.
|
||||
- **duration** (Optional[int]): Optional duration.
|
||||
"""
|
||||
|
||||
artist: Optional[str] = None
|
||||
song: Optional[str] = None
|
||||
duration: Optional[int] = None
|
||||
|
||||
model_config = {
|
||||
"json_schema_extra": {"examples": [{"artist": "eminem", "song": "rap god"}]}
|
||||
}
|
||||
|
||||
|
||||
class ValidTypeAheadRequest(BaseModel):
|
||||
"""
|
||||
Request model for typeahead query.
|
||||
|
||||
Reference in New Issue
Block a user