file structure
This commit is contained in:
1
usecase/__init__.py
Normal file
1
usecase/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .sources import Sources
|
11
usecase/sources.py
Normal file
11
usecase/sources.py
Normal file
@ -0,0 +1,11 @@
|
||||
import re
|
||||
|
||||
from framework import Youtube
|
||||
|
||||
|
||||
class Sources:
|
||||
def __init__(self, youtube: Youtube) -> None:
|
||||
self.youtube = youtube
|
||||
|
||||
async def processQuery(self, query: str):
|
||||
return await self.youtube.searchVideo(query)
|
Reference in New Issue
Block a user