misc/version bump

This commit is contained in:
2025-02-05 20:23:06 -05:00
parent bc333b4258
commit ec80a33298
10 changed files with 97 additions and 117 deletions

View File

@ -22,18 +22,18 @@ class YT(FastAPI):
self.ytsearch = importlib.import_module("youtube_search_async").YoutubeSearch()
self.endpoints = {
"yt_video_search": self.yt_video_search_handler,
"yt/search": self.yt_video_search_handler,
#tbd
}
for endpoint, handler in self.endpoints.items():
app.add_api_route(f"/{endpoint}", handler, methods=["POST"],
include_in_schema=False)
include_in_schema=True)
async def yt_video_search_handler(self, data: ValidYTSearchRequest):
"""
/yt_video_search
Search for YT Video by Title (closest match returned)
- **t**: Title to search
"""
title = data.t