lint
This commit is contained in:
parent
899b1383de
commit
75d54d3dbf
2 changed files with 5 additions and 5 deletions
|
@ -2,9 +2,8 @@
|
|||
|
||||
import os
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
import tomllib
|
||||
from pathlib import Path
|
||||
|
||||
from rwx import ps
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from yt_dlp import YoutubeDL
|
||||
|
||||
from rwx import Object
|
||||
|
@ -125,7 +126,7 @@ class Video(Tab):
|
|||
"outtmpl": "%(id)s.%(ext)s",
|
||||
"writesubtitles": True,
|
||||
"writethumbnail": True,
|
||||
}
|
||||
},
|
||||
).download([self.url])
|
||||
|
||||
def get_url(self) -> str:
|
||||
|
@ -194,7 +195,7 @@ def download_video(video_id: str | None) -> None:
|
|||
],
|
||||
"writesubtitles": True,
|
||||
"writethumbnail": True,
|
||||
}
|
||||
},
|
||||
).download([f"{URL}/watch?v={video_id}"])
|
||||
|
||||
|
||||
|
@ -213,7 +214,7 @@ def extract(opt: dict[str, Any], url: str) -> dict[str, Any]:
|
|||
**opt,
|
||||
"extract_flat": True,
|
||||
"skip_download": True,
|
||||
}
|
||||
},
|
||||
).extract_info(url, download=False)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue