Доделал до рабочего концепта
This commit is contained in:
@@ -34,6 +34,10 @@ class YtDlpManager:
|
||||
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
||||
self.info = ydl.extract_info(self.url, download=False)
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
return self.info.get("id")
|
||||
|
||||
@property
|
||||
def title(self) -> str:
|
||||
"""Возвращает title видео"""
|
||||
|
||||
Reference in New Issue
Block a user